<!DOCTYPE html PUBLIC "- <html><head> <meta content="text/html;charset=ISO-8859-1" http-equiv="content-type"> <title>Edit Images</title> </head> <body> <?PHP if( isset($_GET['TicketID']) ) { $TicketID = addslashes($_GET['TicketID']); } else { die("This script can not be called directly"); } if( isset($_GET['SSID']) ) { $SSID = addslashes($_GET['SSID']); } else { die("This script can not be called directly"); } $inc_dir = "./"; $_Il6fL = NULL; require $inc_dir.'workorder_function_general.inc.php'; $CONF = _OFB10($inc_dir); require_once $inc_dir.'workorder_function_isuserauthenticated.inc.php'; if( _L00CR($SSID,$inc_dir,$_Il6fL,$CONF) == "FAILED" ) { die('Not Authenticated, please login first'); } require $inc_dir.'config-guest.inc.php'; require $inc_dir.'conn-string-guest.inc.php'; $_jLo0J = $CONF['UploadMaxSizeb']; $TableTicketImages = $CONF['TableNameTicketImages']; $sql = "SELECT * FROM $TableTicketImages WHERE TicketID=\"$TicketID\" ORDER BY ID ASC"; $res = mysql_query($sql, $conn) or die("Unable to select Images from $TableTicketImages Error:4f3s5"); $row_cnt = mysql_num_rows($res); if ( $row_cnt != 0 ) { echo('<p>Please select the files you want to delete or change the names of the files you wish to update.</p> <form action="upload_img_del.php" method="POST">'); for( $x = 0 ; $row = mysql_fetch_array($res) ; $x++ ) { $_jlI1C = $row['ID']; $SubDir = $row['SubDir']; $FileName = $row['FileName']; $FileDesc = $row['FileDesc']; $Path = $CONF['UploadTargetPath']; if( empty($FileDesc) == True ) { $FileDesc = "$FileName"; } echo('<input name="ID'.$x.'" value="'.$_jlI1C.'" type="checkbox" tabindex="'.($x+1).'"><input name="FileName'.$x.'" size="30" maxlength="200" tabindex="'.($x+1).'" value="'.htmlentities($FileDesc).'" /> <input type="hidden" name="FileNameID'.$x.'" value="'.$_jlI1C.'" /> <br />'); } echo('<input type="hidden" name="SSID" value="'.$SSID.'"> <input type="hidden" name="Step" value="Process"> <input type="hidden" name="TicketID" value="'.$TicketID.'"> <input type="hidden" name="ImageCount" value="'.$x.'"> <br />'); echo('<input value="Save" type="submit"> <a href="javascript:window.close();">Close Window</a></form>'); } else { echo('You need to upload files before you can edit them <br /> <a href="javascript:window.close();">Close Window</a>') ; } ?> </body></html>