id;
global $theme;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
require_once($theme_path.'layout_utils.php');
$log->info("Change Ticket");
echo "
";
$tkList = '';
$tkList .= '
';
if (($i%2)==0)
$tkList .= '';
else
$tkList .= '
';
$tkList .= '';
$tkList .= ' |
';
$xtpl=new XTemplate ('modules/HelpDesk/Convert.html');
$xtpl->assign("MOD", $mod_strings);
$xtpl->assign("APP", $app_strings);
$xtpl->assign("THEME", $theme);
$xtpl->assign("IMAGE_PATH", $image_path);$xtpl->assign("PRINT_URL", "phprint.php?jt=".session_id());
$xtpl->assign("ID", $id);
$xtpl->assign("CURRENT_USER_ID", $modified_user_id);
$xtpl->assign("RETURN_ACTION","DetailView");
$xtpl->assign("RETURN_MODULE","Leads");
$xtpl->assign("RETURN_ID",$id);
$xtpl->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['case_status_dom'], $focus->status));
if($_REQUEST['change_owner'])
$xtpl->assign("TICKETCHANGE",'Ticket : Change Owner');
else
$xtpl->assign("TICKETCHANGE",'Ticket : Change Status');
$change='';
if($_REQUEST['change_owner'])
{
$change .= ''.$mod_strings['LBL_ASSIGNED_TO'].' | ';
$xtpl->assign("ASSIGNED_USER_OPTIONS",getComboValues("user_name","users","user_name","1",'--None--'));
}
if($_REQUEST['change_status'])
{
$change .= ''.$mod_strings['LBL_STATUS'].' | ';
$xtpl->assign("STATUSOPTIONS",getComboValues("status","ticketstatus","status","1",'Open'));
}
$xtpl->assign("CHANGE",$change);
$xtpl->assign("IDLIST",$idlist);
$xtpl->parse("main");
$xtpl->out("main");
//header("index.php?module=HelpDesk&action=index");
?>