session_start();
// set path for graphic filename
$path = "../client_graphics/";
require_once('../Connections/connection.php');
include_once('../include/header_functions.php');
include_once('../include/functions.php');
show_header("Survey Publishing Tools");
show_job_header();
// ask the database whether survey is active or not, so we know what to display there
$sql = "SELECT active from tbl_jobs WHERE client_id = '$session_client_id'";
$result = mysql_query($sql, $connection);
$active = mysql_result($result, 0);
//create name of image file to display
$sql = "SELECT graphic_file from tbl_jobs WHERE job_id = '$session_job_id'";
$result = mysql_query($sql, $connection) or die("could not select filename
" . mysql_error());
if (mysql_num_rows($result) == 0){
$client_graphic = "";
}
else{
$client_graphic = $path . mysql_result($result, 0);
}
//echo "client_graphic is $client_graphic
";
//now make pull-down list of graphic files from database
$sql = "SELECT DISTINCT graphic_file from tbl_jobs ORDER BY graphic_file";
$result = mysql_query($sql, $connection)
or die("could not get graphic list
" . mysql_error());
while ($row = mysql_fetch_array($result)){
$graphic_file = $row['graphic_file'];
$option_block .= "";
}
?>
|
|
"; ?> |
| "; if ($initial_or_reminder == 'INITIAL'){ echo "This will be the INITIAL email."; } else{ echo "This will be a REMINDER email."; } echo" |
| Notification Type | Date Sent | Subject |
|
$initial_or_reminder
|
$date
|
$subject
|
";
echo "