本文整理汇总了PHP中connector::start_template方法的典型用法代码示例。如果您正苦于以下问题:PHP connector::start_template方法的具体用法?PHP connector::start_template怎么用?PHP connector::start_template使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类connector
的用法示例。
在下文中一共展示了connector::start_template方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onshipsave
function onshipsave()
{
parent::start_template();
$inputclass = $this->fun->accept('inputclass', 'P');
$title = $this->fun->accept('title', 'P');
$content = $this->fun->accept('content', 'P');
$price = $this->fun->accept('price', 'P');
$markup = $this->fun->accept('markup', 'P');
$iscash = $this->fun->accept('iscash', 'P');
$isinsure = $this->fun->accept('isinsure', 'P');
$isinsure = empty($isinsure) ? 0 : $isinsure;
$insureper = $this->fun->accept('insureper', 'P');
$insureper = empty($insureper) ? 0 : $insureper;
$db_table = db_prefix . 'order_shipping';
$date = time();
if ($inputclass == 'add') {
$db_field = 'pid,title,content,price,markup,isclass,iscash,isinsure,insureper,addtime';
$db_values = "50,'{$title}','{$content}',{$price},{$markup},0,{$iscash},{$isinsure},{$insureper},{$date}";
$this->db->query('INSERT INTO ' . $db_table . ' (' . $db_field . ') VALUES (' . $db_values . ')');
$this->writelog($this->lng['ordershipping_add_log'], $this->lng['log_extra_ok'] . ' title=' . $title);
$this->dbcache->clearcache('ordership_array', true);
exit('true');
} elseif ($inputclass == 'edit') {
$osid = $this->fun->accept('osid', 'P');
$db_where = 'osid=' . $osid;
$db_set = "title='{$title}',content='{$content}',price={$price},markup={$markup},iscash={$iscash},isinsure={$isinsure},insureper={$insureper}";
$this->db->query('UPDATE ' . $db_table . ' SET ' . $db_set . ' WHERE ' . $db_where);
$this->writelog($this->lng['ordershipping_edit_log'], $this->lng['log_extra_ok'] . ' title=' . $title . ' id=' . $osid);
$this->dbcache->clearcache('ordership_view_' . $osid, true);
$this->dbcache->clearcache('ordership_array', true);
exit('true');
}
}
示例2: onsave
function onsave()
{
parent::start_template();
$inputclass = $this->fun->accept('inputclass', 'P');
$keycode = $this->fun->accept('keycode', 'P');
$title = $this->fun->accept('title', 'P');
$lng = $this->fun->accept('lng', 'P');
$langstr = $this->fun->accept('langstr', 'P');
$typeid = $this->fun->accept('typeid', 'P');
$db_table = db_prefix . 'lngpack';
if ($inputclass == 'add') {
$db_field = 'pid,lng,title,keycode,langstr,lockin,typeid';
$db_values = "50,'{$lng}','{$title}','{$keycode}','{$langstr}',0,{$typeid}";
$this->db->query('INSERT INTO ' . $db_table . ' (' . $db_field . ') VALUES (' . $db_values . ')');
$this->writelog($this->lng['languagepack_add_log'], $this->lng['log_extra_ok'] . ' title=' . $title);
$this->creat_lanpack($lng, true);
exit('true');
} else {
$lpid = $this->fun->accept('lpid', 'P');
$db_where = 'lpid=' . $lpid;
$db_set = "title='{$title}',langstr='{$langstr}',typeid={$typeid}";
$this->db->query('UPDATE ' . $db_table . ' SET ' . $db_set . ' WHERE ' . $db_where);
$this->creat_lanpack($lng, true);
$this->writelog($this->lng['languagepack_edit_log'], $this->lng['log_extra_ok'] . ' title=' . $title . ' id=' . $lpid);
exit('true');
}
}
示例3: onclasssave
function onclasssave()
{
parent::start_template();
$inputclass = $this->fun->accept('inputclass', 'P');
$integra = $this->fun->accept('integra', 'P');
$integra = empty($integra) ? 0 : $integra;
$rankname = $this->fun->accept('rankname', 'P');
$isinter = $this->fun->accept('isinter', 'P');
$db_table = db_prefix . 'member_class';
$date = time();
if ($inputclass == 'add') {
$db_field = 'rankname,isinter,integra,isclass,lockin';
$db_values = "'{$rankname}',{$isinter},{$integra},0,0";
$this->db->query('INSERT INTO ' . $db_table . ' (' . $db_field . ') VALUES (' . $db_values . ')');
$this->writelog($this->lng['memclassmanage_add_log'], $this->lng['log_extra_ok'] . ' rankname=' . $rankname);
$this->dbcache->clearcache('memberclass_array', true);
exit('true');
} elseif ($inputclass == 'edit') {
$mcid = $this->fun->accept('mcid', 'P');
$db_where = 'mcid=' . $mcid;
$db_set = "rankname='{$rankname}',isinter={$isinter},integra={$integra}";
$this->db->query('UPDATE ' . $db_table . ' SET ' . $db_set . ' WHERE ' . $db_where);
$this->writelog($this->lng['memclassmanage_edit_log'], $this->lng['log_extra_ok'] . ' subjectname=' . $typename . ' sid=' . $sid);
$this->dbcache->clearcache('memberclass_array', true);
$this->dbcache->clearcache('memberclass_view_' . $mcid, true);
exit('true');
}
}
示例4: onrecomsave
function onrecomsave()
{
parent::start_template();
$inputclass = $this->fun->accept('inputclass', 'P');
$mid = $this->fun->accept('mid', 'P');
$mid = empty($mid) ? 0 : $mid;
$lng = $this->fun->accept('lng', 'P');
$lng = empty($lng) ? $this->sitelng : $lng;
$labelname = $this->fun->accept('labelname', 'P');
$db_table = db_prefix . 'document_label';
$date = time();
if ($inputclass == 'add') {
$db_field = 'lng,mid,labelname';
$db_values = "'{$lng}',{$mid},'{$labelname}'";
$this->db->query('INSERT INTO ' . $db_table . ' (' . $db_field . ') VALUES (' . $db_values . ')');
$this->writelog($this->lng['recommanage_add_log'], $this->lng['log_extra_ok'] . ' labelname=' . $labelname);
$this->dbcache->clearcache('doclabel_array_' . $mid, true);
$this->dbcache->clearcache('doclabel_array_0', true);
exit('true');
} elseif ($inputclass == 'edit') {
$dlid = $this->fun->accept('dlid', 'P');
$db_where = 'dlid=' . $dlid;
$db_set = "labelname='{$labelname}'";
$this->db->query('UPDATE ' . $db_table . ' SET ' . $db_set . ' WHERE ' . $db_where);
$this->writelog($this->lng['recommanage_edit_log'], $this->lng['log_extra_ok'] . ' labelname=' . $labelname . ' dlid=' . $dlid);
$this->dbcache->clearcache('doclabel_array_' . $mid, true);
$this->dbcache->clearcache('doclabel_array_0', true);
exit('true');
}
}
示例5:
function lib_menu()
{
$this->softbase(true);
parent::start_template();
$this->ectemplates->caching = false;
$this->ectemplates->libfile = true;
}
示例6: onsmssendedit
function onsmssendedit()
{
parent::start_template();
$tab = $this->fun->accept('tab', 'R');
$tab = empty($tab) ? 'true' : $tab;
$type = $this->fun->accept('type', 'R');
$type = empty($type) ? 'edit' : $type;
$smsid = intval($this->fun->accept('smsid', 'R'));
if (empty($smsid)) {
exit('false');
}
$db_table = db_prefix . 'smssendlist';
$db_where = 'smsid=' . $smsid;
$read = $this->db->fetch_first('SELECT * FROM ' . $db_table . ' WHERE ' . $db_where);
$typearray = $this->get_moblie_type_array($read['mobtid']);
$this->ectemplates->assign('typelist', $typearray['list']);
$this->ectemplates->assign('read', $read);
$this->ectemplates->assign('path', admin_URL);
$this->ectemplates->assign('type', $type);
$this->ectemplates->assign('tab', $tab);
if ($type == 'edit') {
$this->ectemplates->display('mobliemain/sms_send_edit');
} elseif ($type == 'send') {
$moblielist_array = explode(',', $read['moblielist']);
$sendhow = count($moblielist_array);
$this->ectemplates->assign('sendhow', $sendhow);
$this->ectemplates->display('mobliemain/sms_send_away');
}
}
示例7: onsave
function onsave()
{
parent::start_template();
$inputclass = $this->fun->accept('inputclass', 'P');
$sitename = $this->fun->accept('sitename', 'P');
$sitehttp = $this->fun->accept('sitehttp', 'P');
$sitedir = $this->fun->accept('sitedir', 'P');
$sitecode = $this->fun->accept('sitecode', 'P');
$siteip = $this->fun->accept('siteip', 'P');
$adminusername = $this->fun->accept('adminusername', 'P');
$time = time();
$db_table = db_prefix . 'site';
if ($inputclass == 'add') {
$db_field = 'pid,sitename,sitehttp,sitedir,sitecode,siteip,adminusername,addtime';
$db_values = "50,'{$sitename}','{$sitehttp}','{$sitedir}','{$sitecode}','{$siteip}','{$adminusername}',{$time}";
$this->db->query('INSERT INTO ' . $db_table . ' (' . $db_field . ') VALUES (' . $db_values . ')');
$this->writelog($this->lng['sitemain_log_add'], $this->lng['log_extra_ok'] . ' 群点名称=' . $sitename);
exit('true');
} else {
$slid = $this->fun->accept('slid', 'P');
$db_where = 'slid=' . $slid;
$db_set = "sitename='{$sitename}',sitehttp='{$sitehttp}',sitedir='{$sitedir}',sitecode='{$sitecode}',siteip='{$siteip}',adminusername='{$adminusername}'";
$this->db->query('UPDATE ' . $db_table . ' SET ' . $db_set . ' WHERE ' . $db_where);
$this->writelog($this->lng['sitemain_log_edit'], $this->lng['log_extra_ok'] . ' 群点名称=' . $sitename . ' id=' . $slid);
exit('true');
}
}
示例8: onacmessagere
function onacmessagere()
{
parent::start_template();
$tab = $this->fun->accept('tab', 'R');
$tab = empty($tab) ? 'true' : $tab;
$type = $this->fun->accept('type', 'R');
$type = empty($type) ? 'edit' : $type;
$dmid = intval($this->fun->accept('dmid', 'R'));
if (empty($dmid)) {
exit('false');
}
$read = $this->get_docmessage_veiw($dmid);
$reBook = $this->get_documentview($read['did']);
$this->ectemplates->assign('articelread', $reBook);
if (!empty($read['userid'])) {
$rsMember = $this->get_member(null, $read['userid']);
}
$this->ectemplates->assign('member', $rsMember);
if (!empty($read['adminid'])) {
$rsAdmin = $this->get_admin_view(null, $read['adminid']);
}
$this->ectemplates->assign('adminview', $rsAdmin);
$input_default = $this->CON;
$this->ectemplates->assign('defaultinput', $input_default);
$this->ectemplates->assign('lng', $read['lng']);
$this->ectemplates->assign('read', $read);
$this->ectemplates->assign('path', admin_URL);
$this->ectemplates->assign('type', $type);
$this->ectemplates->assign('tab', $tab);
$this->ectemplates->display('article/article_message_edit');
}
示例9: onskinadd
function onskinadd()
{
parent::start_template();
$tab = $this->fun->accept('tab', 'G');
$tab = empty($tab) ? 'true' : $tab;
$this->ectemplates->assign('tab', $tab);
$this->ectemplates->assign('lng', $lng['list']);
$this->ectemplates->display('template/skin_add');
}
示例10: onpifrmat
function onpifrmat()
{
parent::start_template();
$tmid = $this->fun->accept('tmid', 'R');
$db_table = db_prefix . 'templates';
$db_where = 'tmid=' . $tmid;
$read = $this->db->fetch_first('SELECT * FROM ' . $db_table . ' WHERE ' . $db_where);
$read['templatecontent'] = stripslashes(htmlspecialchars_decode($read['templatecontent']));
$this->ectemplates->assign('read', $read);
$this->ectemplates->display('template/printtemplate_frame');
}
示例11: onsmstemplateedit
function onsmstemplateedit()
{
parent::start_template();
$db_table = db_prefix . 'templates';
$tmid = intval($this->fun->accept('tmid', 'G'));
$db_where = 'tmid=' . $tmid;
$read = $this->db->fetch_first('SELECT * FROM ' . $db_table . ' WHERE ' . $db_where);
$this->ectemplates->assign('tab', $tab);
$this->ectemplates->assign('read', $read);
$this->ectemplates->display('template/smstemplate_edit');
}
示例12: onpayplugedit
function onpayplugedit()
{
parent::start_template();
$opid = $this->fun->accept('opid', 'G');
$db_table = db_prefix . 'order_pay';
$db_where = 'opid=' . $opid;
$read = $this->db->fetch_first('SELECT * FROM ' . $db_table . ' WHERE ' . $db_where);
$paylist = unserialize($read['pluglist']);
$this->ectemplates->assign('tab', 'true');
$this->ectemplates->assign('read', $read);
$this->ectemplates->assign('paylist_config', $paylist);
$this->ectemplates->display('order/order_payplugedit');
}
示例13: onupgrade
function onupgrade()
{
parent::start_template();
$softvolstr = $this->CON['softvolstr'];
$softvol = $this->CON['softvol'];
$volarray = $this->oncheckvol();
$digheight = $this->fun->accept('digheight', 'R');
$this->ectemplates->assign('digheight', $digheight);
$this->ectemplates->assign('softvol', $softvol);
$this->ectemplates->assign('array', $volarray);
$this->ectemplates->assign('softvolstr', $softvolstr);
$this->ectemplates->display('admin/admin_softvol');
}
示例14: ongroupedit
function ongroupedit()
{
parent::start_template();
$db_table = db_prefix . 'admin_powergroup';
$id = $this->fun->accept('id', 'G');
$db_where = 'id=' . $id;
$rsList = $this->db->fetch_first('SELECT * FROM ' . $db_table . ' WHERE ' . $db_where);
$powermenulist = $this->get_powermenulist();
$powerlist = explode('|', $rsList['powerlist']);
$this->ectemplates->assign('tab', 'true');
$this->ectemplates->assign('groupinfo', $rsList);
$this->ectemplates->assign('powermenulist', $powermenulist);
$this->ectemplates->assign('powerlist', $powerlist);
$this->ectemplates->display('admin/admin_group_edit');
}
示例15: oncreaterss
function oncreaterss()
{
parent::start_template();
$tab = $this->fun->accept('tab', 'R');
$tab = empty($tab) ? 'true' : $tab;
$mid = $this->fun->accept('mid', 'R');
$mid = empty($mid) ? 0 : $mid;
$lng = $this->sitelng;
$lng = empty($lng) ? $this->CON['is_alonelng'] && !empty($this->CON['home_lng']) ? $this->CON['home_lng'] : $this->CON['default_lng'] : $lng;
$lnglist = $this->get_lng_array($lng);
$this->ectemplates->assign('lnglist', $lnglist['list']);
$modelarray = $this->get_model(0, $lng, 1, 2);
$this->ectemplates->assign('modelarray', $modelarray['list']);
$this->ectemplates->assign('tab', $tab);
$this->ectemplates->display('creat/creat_rss');
}