APP_URL."index.php/admin/config/index"; $FORM = new DooForm( array( "method" => "post", "action" => $action, "elements" => array( "taodianjinPid" => array( "text", array( "value" => $datas['taodianjinPid'], "required" => TRUE, "label" => "淘点金完整PID: ", "attributes" => array( "class" => "text-input medium-input" ), "field-wrapper" => "p", "validators" => array( array( "required", "请输入淘点金完整PID" ), array( "minlength", 20, "完整PID位数貌似不对,格式应该为:mm_00000000_0000000_0000000" ) ) ) ), "siteTitle" => array( "text", array( "required" => TRUE, "label" => "网站首页标题:", "value" => $datas['siteTitle'], "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p", "validators" => array( array( "required", "请输入网站标题" ), array( "minlength", 1, "请输入网站标题" ) ) ) ), "siteKeywords" => array( "text", array( "required" => TRUE, "value" => $datas['siteKeywords'], "label" => "网站首页关键字: ", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p" ) ), "siteDescription" => array( "textarea", array( "required" => TRUE, "value" => $datas['siteDescription'], "label" => "网站首页描述: ", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p" ) ), "siteWelcome" => array( "text", array( "required" => TRUE, "value" => $datas['siteWelcome'], "label" => "首页顶部欢迎语:", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p" ) ), "siteFooter" => array( "textarea", array( "value" => $datas['siteFooter'], "required" => TRUE, "label" => "全站底部代码: ", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p" ) ), "clickUrl" => array( "text", array( "value" => $datas['clickUrl'], "required" => TRUE, "label" => "网站出错后的跳转链接(推广链接): ", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p", "validators" => array( array( "required", "请输入网站出错后的跳转链接" ), array( "minlength", 1, "请输入网站出错后的跳转链接" ) ) ) ), "searchFormType" => array( "select", array( "multioptions" => array( "140" => "淘宝", "141" => "天猫", "off" => "隐藏" ), "value" => $datas['searchFormType'], "required" => TRUE, "label" => "搜索框类型: ", "attributes" => array( "class" => "text-input" ), "field-wrapper" => "p", "validators" => array( array( "required", "请选择搜索框类型" ), array( "minlength", 1, "请选择搜索框类型" ) ) ) ), "indexCacheTime" => array( "text", array( "required" => TRUE, "value" => $datas['indexCacheTime'] || $datas['indexCacheTime'] === "0" ? $datas['indexCacheTime'] : 86400, "label" => "首页列表缓存时间(填写数字,单位为秒):", "attributes" => array( "class" => "text-input small-input" ), "field-wrapper" => "p" ) ), "goodsCacheTime" => array( "text", array( "required" => TRUE, "value" => !$datas['goodsCacheTime'] ? 604800 : $datas['goodsCacheTime'], "label" => "商品列表缓存时间(填写数字,单位为秒,数字越大越稳定,必须大于0):", "attributes" => array( "class" => "text-input small-input" ), "field-wrapper" => "p" ) ), "submit" => array( "submit", array( "label" => "提交", "attributes" => array( "class" => "button" ) ) ) ) ) ); if ( $this->isPost( ) || $_POST( $_POST ) ) { $this->showMsg( $_POST, "system" "保存成功!", $action ); } $this->view( )->form = $FORM->render( ); $this->data( "config/index", $this->data, TRUE ); } public function wordSeo( ) { $datas = ( "system" ); $action = ( )->APP_URL."index.php/admin/config/wordSeo/"; $FORM = new DooForm( array( "method" => "post", "action" => $action, "elements" => array( "wordTitle" => array( "text", array( "required" => TRUE, "value" => $datas['wordTitle'], "label" => "热词标题(title meta): {word}代表热词", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p", "validators" => array( array( "required", "请输入热词标题" ), array( "minlength", 1, "请输入热词标题" ) ) ) ), "wordKeywords" => array( "text", array( "required" => TRUE, "value" => $datas['wordKeywords'], "label" => "热词关键字(keywords meta): {word}代表热词", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p", "validators" => array( ) ) ), "wordDescription" => array( "textarea", array( "required" => TRUE, "value" => $datas['wordDescription'], "label" => "热词描述(description meta): {word}代表热词", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p", "validators" => array( ) ) ), "wordFooter" => array( "textarea", array( "value" => $datas['wordFooter'], "required" => TRUE, "label" => "热词底部: {word}代表热词,{wordUrl}代表热词url", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p" ) ), "wordWelcome" => array( "text", array( "required" => TRUE, "value" => $datas['wordWelcome'], "label" => "热词顶部欢迎语: {word}代表热词,{wordUrl}代表热词url", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p", "validators" => array( array( "required", "请输入热词欢迎语" ), array( "minlength", 1, "请输入热词欢迎语" ) ) ) ), "submit" => array( "submit", array( "label" => "提交", "attributes" => array( "class" => "button" ) ) ) ) ) ); if ( $this->isPost( ) && $_POST( $_POST ) ) { $this->showMsg( $_POST, "system" "保存成功!", $action ); } $this->view( )->form = $FORM->render( ); $this->data( "config/index", $this->data, TRUE ); } public function ad( ) { $datas = ( "ad" ); $action = ( )->APP_URL."index.php/admin/config/ad/"; $FORM = new DooForm( array( "method" => "post", "action" => $action, "elements" => array( "topMenu" => array( "textarea", array( "required" => TRUE, "value" => $datas['topMenu'], "label" => "顶部导航条:", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p" ) ), "indexTopAd" => array( "textarea", array( "required" => TRUE, "value" => $datas['indexTopAd'], "label" => "首页广告位:", "attributes" => array( "class" => "text-input large-input" ), "field-wrapper" => "p" ) ), "submit" => array( "submit", array( "label" => "提交", "attributes" => array( "class" => "button" ) ) ) ) ) ); if ( $this->isPost( ) && $_POST( $_POST ) ) { $this->showMsg( $_POST, "ad" "保存成功!", $action ); } $this->view( )->form = $FORM->render( ); $this->data( "config/index", $this->data, TRUE ); } } ?>