芝麻web文件管理V1.00
编辑当前文件:/home/jambtst2015/public_html/giraffeng.com/admin/email_template.php
0 && $_REQUEST['main_activity_id']=='' && $_REQUEST['action']!="edit") { $subject=mysql_real_escape_string($_REQUEST['subjectar11']); $body=mysql_real_escape_string($_REQUEST['bodyar11']); mysql_query("update sat_email_template set subject='".$subject."',body='".$body."' where id=1"); $msg = 2; header("location:email_template.php?msg=$msg&id=1"); } if($_REQUEST['addtime']=="SAVE" && count($_POST)>0 && $_REQUEST['main_activity_id']=='' && $_REQUEST['action']!="edit") { $subject=mysql_real_escape_string($_REQUEST['subjecttime']); $body=mysql_real_escape_string($_REQUEST['bodytime']); mysql_query("update sat_email_template set subject='".$subject."',body='".$body."' where id=2"); $msg = 2; header("location:email_template.php?msg=$msg&id=2"); } if($_REQUEST['add_project_ending']=="SAVE" && count($_POST)>0 && $_REQUEST['main_activity_id']=='' && $_REQUEST['action']!="edit") { $subject=mysql_real_escape_string($_REQUEST['subject_project_ending']); $body=mysql_real_escape_string($_REQUEST['body_project_ending']); mysql_query("update sat_email_template set subject='".$subject."',body='".$body."' where id=3"); $msg = 2; header("location:email_template.php?msg=$msg&id=3"); } if($_REQUEST['add_payroll']=="SAVE" && count($_POST)>0 && $_REQUEST['main_activity_id']=='' && $_REQUEST['action']!="edit") { $subject=mysql_real_escape_string($_REQUEST['subject_payroll']); $body=mysql_real_escape_string($_REQUEST['body_payroll']); mysql_query("update sat_email_template set subject='".$subject."',body='".$body."' where id=4"); $msg = 2; header("location:email_template.php?msg=$msg&id=4"); } if($_REQUEST['add_supplemental_timesheet']=="SAVE" && count($_POST)>0 && $_REQUEST['main_activity_id']=='' && $_REQUEST['action']!="edit") { $subject=mysql_real_escape_string($_REQUEST['subject_supplemental_timesheet']); $body=mysql_real_escape_string($_REQUEST['body_supplemental_timesheet']); mysql_query("update sat_email_template set subject='".$subject."',body='".$body."' where id=5"); $msg = 2; header("location:email_template.php?msg=$msg&id=5"); } if($_REQUEST['add_staff_edit']=="SAVE" && count($_POST)>0 && $_REQUEST['main_activity_id']=='' && $_REQUEST['action']!="edit") { $subject=mysql_real_escape_string($_REQUEST['subject_staff_edit']); $body=mysql_real_escape_string($_REQUEST['body_staff_edit']); mysql_query("update sat_email_template set subject='".$subject."',body='".$body."' where id=6"); $msg = 2; header("location:email_template.php?msg=$msg&id=6"); } /////////////End Add////////////////////////////////////////////// ///////////////////////////Edit Events//////////////////////////// if($_REQUEST['edit']=="EDIT" && count($_POST)>0 && $_REQUEST['main_activity_id']!='' && $_REQUEST['action']=="edit") { mysql_query("update sat_main_activity set main_activity='".mysql_real_escape_string($_REQUEST['main_activityname'])."' where main_activity_id=".$_REQUEST['main_activity_id'].""); $msg = 2; header("location:email_template.php?msg=$msg&page=".$_REQUEST['page_hide'].""); } ///////////////////////////End edit events//////////////////////// ///////////////////////////For Edit//////////////////////////////////////////////// $array_product_details=""; if($_REQUEST['action']=="edit" && $_REQUEST['main_activity_id']!='' && !$_REQUEST['edit']) { $array_product_details=mysql_fetch_array(mysql_query("select * from sat_main_activity where main_activity_id=".$_REQUEST['main_activity_id']." order by main_activity")); $_REQUEST['main_activityname']=$array_product_details['main_activity']; } //////////////////////End for edit/////////////////////////////////////////// ///////////////////For Delete////////////////////////////////////////////// if($_REQUEST['delete']=="del" && $_REQUEST['delete_id']!='') { mysql_query("delete from sat_main_activity where main_activity_id=".$_REQUEST['delete_id'].""); mysql_query("delete from abs_exhibit where main_activity_id=".$_REQUEST['delete_id'].""); $msg = 3; header("location:email_template.php?msg=$msg&page=".$_REQUEST['page_hide'].""); } ///////////////////////End for delete////////////////////////////////// if(!$_REQUEST['page']) { $_SESSION['srchstr']=""; $_SESSION['srchkey']=""; } ?>
Main activity added successfully'; } if($msg == 2){ $msg = '
Email template updated successfully
'; } if($msg == 3){ $msg = "Main activity deleted successfully"; } if($msg == 4){ $msg = "Main activity already exsists"; } ?>
Supplemental Timesheet Email Format
Staff Edit Information Email Format
Time Sheet Email Format
Question Email Format
Time Sheet with Attachment Email Format
Forgot Password Email Format
Staff Password Email Format
blocknone;">
Manage Staff Edit Information Email Format
Subject
:
Body
:
</textarea>
if($_REQUEST['action']=="edit") { ?>
} else { ?>
} ?>
blocknone;">
Manage Time Sheet Email Format
Subject
:
Body
:
</textarea>
if($_REQUEST['action']=="edit") { ?>
} else { ?>
} ?>
blocknone;">
Manage Question Email Format
Subject
:
Body
:
</textarea>
if($_REQUEST['action']=="edit") { ?>
} else { ?>
} ?>
blocknone;">
Manage Time Sheet with Attachment Email Format
Subject
:
Body
:
</textarea>
if($_REQUEST['action']=="edit") { ?>
} else { ?>
} ?>
blocknone;">
Manage Forgot Password Email Format
Subject
:
Body
:
</textarea>
if($_REQUEST['action']=="edit") { ?>
} else { ?>
} ?>
blocknone;">
Manage Staff Password Email Format
Subject
:
Body
:
</textarea>
if($_REQUEST['action']=="edit") { ?>
} else { ?>
} ?>