subscription_edit.inc.php

来自「phpcms2007很好的cms内容管理系统,操作方便」· PHP 代码 · 共 28 行

PHP
28
字号
<?phpif(empty($mailid)) showmessage($LANG['illegal_parameters']);$mailid = intval($mailid);if($dosubmit){	$typeid = intval($typeid);	if(!$title) showmessage($LANG['mail_title_not_null']);	if(!$typeid) showmessage($LANG['select_correct_subscription_type']);	if(!$content) showmessage($LANG['mail_content_not_null']);	if(!$period) showmessage($LANG['input_period']);	$sql="UPDATE ".TABLE_MAIL.		" SET typeid='".$typeid."',title='".$title."',content='".$content."',addtime='".$PHP_TIME."',period='".$period."',username='".$_username."' ".		"WHERE mailid=".$mailid;		$result = $db->query($sql);		showmessage($LANG['operation_success'],"?mod=$mod&file=$file&action=manage");}$mail = $db->get_one("SELECT * FROM ".TABLE_MAIL." where mailid = $mailid limit 1");$typeid = isset($typeid) ? $typeid : $mail['typeid'] ;$type_select = type_select('typeid',$LANG['select_subscription_type'],$typeid,'');	$mail=new_htmlspecialchars($mail);if (count($mail)<1) showmessage($LANG['cannot_find_record_return'],$referer);include admintpl("subscription_edit");?> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?