<?php //require_once "agent_info.php"; $banner_agent = function_exists('agent_inform') ? agent_inform() : agent_info(); echo "<table width=100% bgcolor=black>"; echo "<tr>"; echo "<td align=right>"; echo "<font face=arial color=white size=-1><b>{$banner_agent['agentname']}</b></font>"; echo "</td>"; echo "</tr>"; echo "</table>";
<?php //require_once "./techshare.php"; require_once "../includes/connect_idb.php"; require_once "../includes/agent_inform.php"; require_once "../includes/agent_banner.php"; $agentdet = agent_inform(); $agentinit = $agentdet['agentinit']; //mysql_connect(localhost,$username,$password); //@mysql_select_db($database) or die( "Unable to select database"); //echo "Hello\n"; if (isset($_POST['action']) and $_POST['action'] == 'Submit') { $itr_description = $_POST['itr_description']; if (!empty($itr_description)) { $query = "insert into itr_requests set itr_description='" . mysqli_real_escape_string($db_con, $itr_description) . "', itr_raised=now(), itr_raisedby='{$agentinit}';"; mysqli_query($db_con, $query); //echo "Submit-{$query}\n"; $itr_record = mysqli_insert_id($db_con); $itr_id = substr($itr_record, -3); $query = "update itr_requests set itr_id='{$itr_id}' where itr_record='{$itr_record}' limit 1;"; mysqli_query($db_con, $query); echo "<table border=1 cellspacing=1 bgcolor=white><tr><td><pre>"; echo "----------------------------------------\n"; echo " IT REQUEST FORM\n"; echo "----------------------------------------\n"; echo "\n"; echo "IT Completed: \n"; echo "\n"; echo "CS Tested: \n"; echo "\n"; echo "Client Informed: \n";