'; global $adb; global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); if(isset($_REQUEST['record']) && $_REQUEST['record']!='') { $id = $_REQUEST['record']; $mode = 'edit'; $xtpl=new XTemplate ('modules/Users/EditNotification.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $sql="select * from notificationscheduler where schedulednotificationid = ".$id; $result = $adb->query($sql); if($adb->num_rows($result) ==1); { $label = $mod_strings[$adb->query_result($result,0,'label')]; $notification_subject = $adb->query_result($result,0,'notificationsubject'); $notification_body = $adb->query_result($result,0,'notificationbody'); $xtpl->assign("RETURN_MODULE","Users"); $xtpl->assign("RETURN_ACTION","listnotificationschedulers"); $xtpl->assign("RECORD_ID",$id); if (isset($label)) $xtpl->assign("LABEL",$label); if (isset($notification_subject)) $xtpl->assign("SUBNOTIFY",$notification_subject); if (isset($notification_body)) $xtpl->assign("BODYNOTIFY",$notification_body); } $xtpl->parse("main"); $xtpl->out("main"); } else { header("Location:index.php?module=Users&action=listnotificationschedulers"); } ?>