当前位置: 首页>>代码示例>>PHP>>正文


PHP connector::start_template方法代码示例

本文整理汇总了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');
     }
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:33,代码来源:shipplug.php

示例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');
     }
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:27,代码来源:languagepack.php

示例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');
     }
 }
开发者ID:huangs0928,项目名称:zzlangshi,代码行数:28,代码来源:memclassmanage.php

示例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');
     }
 }
开发者ID:qiuai,项目名称:enterprise,代码行数:30,代码来源:recommanage.php

示例5:

 function lib_menu()
 {
     $this->softbase(true);
     parent::start_template();
     $this->ectemplates->caching = false;
     $this->ectemplates->libfile = true;
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:7,代码来源:lib_menu.php

示例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');
     }
 }
开发者ID:huangs0928,项目名称:zzlangshi,代码行数:29,代码来源:smsmain.php

示例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');
     }
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:27,代码来源:sitemain.php

示例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');
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:31,代码来源:acmessagemain.php

示例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');
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:9,代码来源:skinmain.php

示例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');
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:11,代码来源:printtemplatemain.php

示例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');
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:11,代码来源:smstemplatemain.php

示例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');
 }
开发者ID:huangs0928,项目名称:zzlangshi,代码行数:13,代码来源:payplug.php

示例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');
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:13,代码来源:upgrademain.php

示例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');
 }
开发者ID:qiuai,项目名称:esp_cms,代码行数:15,代码来源:powergroup.php

示例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');
 }
开发者ID:qiuai,项目名称:enterprise,代码行数:16,代码来源:createseomain.php


注:本文中的connector::start_template方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。