芝麻web文件管理V1.00
编辑当前文件:/home/jambtst2015/public_html/giraffeng.com/admin/empnotes.php
0 && $_REQUEST['id']=='' && $_REQUEST['action']!="edit") { $userid=mysql_real_escape_string($_REQUEST['userid']); $notes_history=mysql_real_escape_string($_REQUEST['notes_history']); $reminder_date=change_dateformat($_REQUEST['reminder_date']); $reminder_email=mysql_real_escape_string($_REQUEST['reminder_email']); mysql_query("insert into sat_notes_history set staff_id='".$userid."', notes_history='".$notes_history."', add_date=now(), added_user='".$_SESSION['sat_login_id']."'"); $msg = 1; header("location:empnotes.php?msg=$msg&userid=$userid"); } /////////////End Add////////////////////////////////////////////// ///////////////////////////Edit Events//////////////////////////// if($_REQUEST['edit']=="EDIT" && count($_POST)>0 && $_REQUEST['id']!='' && $_REQUEST['action']=="edit") { $userid=mysql_real_escape_string($_REQUEST['userid']); $notes_history=mysql_real_escape_string($_REQUEST['notes_history']); $reminder_date=change_dateformat($_REQUEST['reminder_date']); $reminder_email=mysql_real_escape_string($_REQUEST['reminder_email']); mysql_query("update sat_notes_history set staff_id='".$userid."', notes_history='".$notes_history."', added_user='".$_SESSION['sat_login_id']."' where id=".$_REQUEST['id'].""); $msg = 2; header("location:empnotes.php?msg=$msg&page=".$_REQUEST['page_hide']."&userid=$userid"); } ///////////////////////////End edit events//////////////////////// ///////////////////////////For Edit//////////////////////////////////////////////// $array_product_details=""; if($_REQUEST['action']=="edit" && $_REQUEST['id']!='' && !$_REQUEST['edit']) { $array_product_details=mysql_fetch_array(mysql_query("select * from sat_notes_history where id=".$_REQUEST['id']."")); $_REQUEST['categoryname']=$array_product_details['category']; } //////////////////////End for edit/////////////////////////////////////////// ///////////////////For Delete////////////////////////////////////////////// if($_REQUEST['delete']=="del" && $_REQUEST['delete_id']!='') { $userid=mysql_real_escape_string($_REQUEST['userid']); mysql_query("delete from sat_notes_history where id=".$_REQUEST['delete_id'].""); $msg = 3; header("location:empnotes.php?msg=$msg&page=".$_REQUEST['page_hide']."&userid=$userid"); } ///////////////////////End for delete////////////////////////////////// if(!$_REQUEST['page']) { $_SESSION['srchstr']=""; $_SESSION['srchkey']=""; } ?>
Back
Add Note
blocknone;">
Add Staff Note of
*
Write Note
:
</textarea>
Reminder Date
:
Reminder Email
:
if($_REQUEST['action']=="edit") { ?>
} else { ?>
} ?>
No
Staff Name
Added Date
Added By User
Reminder Date
Reminder Email
Notes
E / D
1) { $pagination .= "
Previous
"; $pagination.=" "; } for($i = 1; $i <=$total_pages; $i++) { if(($page) == $i) { $pagination .= $i; $pagination.=' '; } else { $pagination .= "
$i
"; $pagination.=' '; } } if($page < $total_pages) { $pagination .= "
Next
"; $pagination.=" "; } $query_res.=" limit $from,$max_results"; //echo $query_res; $query_products=mysql_query($query_res); ////////////////////////////////End pagination//////////////////////////////////// if(mysql_num_rows($query_products)>0) { $inc=1; while($array_products=mysql_fetch_array($query_products)) { if($inc%2==0) { ?>
} if($_REQUEST['page']!="") { $j=($_REQUEST['page']-1)*10; } ?>
No Records Found
=$pagination;?>