Пример #1
0
;">
	<div class="window-nav <?php 
        echo getPrefix("hidebar", "value", $apps);
        ?>
 <?php 
        echo getPrefix("type", "displaybar", $apps);
        ?>
" id="<?php 
        echo getPrefix("type", "bar", $apps);
        ?>
">
		<span id="btitle" style='color: <?php 
        echo getPrefix("type", "titlefont-color", $apps);
        ?>
;'><lang><?php 
        echo gettag("title", $apps);
        ?>
</lang></span>
		<span class="navbutton">
			<a href="window:hide();" id="hide" style='color: <?php 
        echo getPrefix("type", "titlefont-color", $apps);
        ?>
;'>-</a>
			<a href="window:max();" id="max" style='color: <?php 
        echo getPrefix("type", "titlefont-color", $apps);
        ?>
;'>as</a>
			<a href="window:close();" id="close" style='color: <?php 
        echo getPrefix("type", "titlefont-color", $apps);
        ?>
;'>X</a>
Пример #2
0
 public function save()
 {
     $id = intval($this->input->post('id'));
     $name = $this->input->post('name', true);
     $tags = $this->input->post('tags', true);
     $content = remove_xss($this->input->post('content'));
     $addtime = $this->input->post('addtime', true);
     $data['cid'] = intval($this->input->post('cid'));
     if (empty($name) || empty($data['cid'])) {
         admin_msg('抱歉,歌手名称、分类不能为空~!', 'javascript:history.back();', 'no');
     }
     //自动获取TAGS标签
     if (empty($tags)) {
         $tags = gettag($name, $content);
     }
     $data['yid'] = intval($this->input->post('yid'));
     $data['reco'] = intval($this->input->post('reco'));
     $data['name'] = $name;
     $data['tags'] = $tags;
     $data['pic'] = $this->input->post('pic', true);
     $data['color'] = $this->input->post('color', true);
     $data['bname'] = $this->input->post('bname', true);
     $data['hits'] = intval($this->input->post('hits'));
     $data['yhits'] = intval($this->input->post('yhits'));
     $data['zhits'] = intval($this->input->post('zhits'));
     $data['rhits'] = intval($this->input->post('rhits'));
     $data['nichen'] = $this->input->post('nichen', true);
     $data['sex'] = $this->input->post('sex', true);
     $data['nat'] = $this->input->post('nat', true);
     $data['yuyan'] = $this->input->post('yuyan', true);
     $data['city'] = $this->input->post('city', true);
     $data['sr'] = $this->input->post('sr', true);
     $data['xingzuo'] = $this->input->post('xingzuo', true);
     $data['height'] = $this->input->post('height', true);
     $data['weight'] = $this->input->post('weight', true);
     $data['content'] = $content;
     $data['title'] = $this->input->post('title', true);
     $data['keywords'] = $this->input->post('keywords', true);
     $data['description'] = $this->input->post('description', true);
     if ($id == 0) {
         //新增
         $data['addtime'] = time();
         $this->CsdjDB->get_insert('singer', $data);
     } else {
         if ($addtime == 'ok') {
             $data['addtime'] = time();
         }
         $this->CsdjDB->get_update('singer', $id, $data);
     }
     admin_msg('恭喜您,操作成功~!', site_url('singer/admin/singer'), 'ok');
     //操作成功
 }
Пример #3
0
 public function save()
 {
     $id = intval($this->input->post('id'));
     $name = $this->input->post('name', true);
     $content = remove_xss($this->input->post('content'));
     $user = $this->input->post('user', true);
     $tags = $this->input->post('tags', true);
     $info = $this->input->post('info', true);
     $skins = $this->input->post('skins');
     $addtime = $this->input->post('addtime', true);
     $data['cid'] = intval($this->input->post('cid'));
     if (empty($name) || empty($data['cid'])) {
         admin_msg('抱歉,新闻名称、分类不能为空~!', 'javascript:history.back();', 'no');
     }
     //自动获取TAGS标签
     if (empty($tags)) {
         $tags = gettag($name, $content);
     }
     $data['yid'] = intval($this->input->post('yid'));
     $data['tid'] = intval($this->input->post('tid'));
     $data['reco'] = intval($this->input->post('reco'));
     $data['uid'] = intval(getzd('user', 'id', $user, 'name'));
     $data['name'] = $name;
     $data['pic'] = $this->input->post('pic', true);
     $data['info'] = sub_str($content, 125);
     $data['color'] = $this->input->post('color', true);
     $data['bname'] = $this->input->post('bname', true);
     $data['cion'] = intval($this->input->post('cion'));
     $data['vip'] = intval($this->input->post('vip'));
     $data['level'] = intval($this->input->post('level'));
     $data['tags'] = $tags;
     $data['pic2'] = $this->input->post('pic2', true);
     $data['hits'] = intval($this->input->post('hits'));
     $data['yhits'] = intval($this->input->post('yhits'));
     $data['zhits'] = intval($this->input->post('zhits'));
     $data['rhits'] = intval($this->input->post('rhits'));
     $data['dhits'] = intval($this->input->post('dhits'));
     $data['chits'] = intval($this->input->post('chits'));
     $data['skins'] = empty($skins) ? 'show.html' : $skins;
     $data['content'] = $content;
     $data['title'] = $this->input->post('title', true);
     $data['keywords'] = $this->input->post('keywords', true);
     $data['description'] = $this->input->post('description', true);
     if ($id == 0) {
         //新增
         $data['addtime'] = time();
         $this->CsdjDB->get_insert('news', $data);
     } else {
         if ($data['yid'] == 0) {
             $this->dt($id);
         }
         if ($addtime == 'ok') {
             $data['addtime'] = time();
         }
         $this->CsdjDB->get_update('news', $id, $data);
     }
     admin_msg('恭喜您,操作成功~!', site_url('news/admin/news'), 'ok');
     //操作成功
 }
Пример #4
0
 public function save()
 {
     $id = intval($this->input->post('id'));
     $name = $this->input->post('name', true);
     $content = remove_xss($this->input->post('content'));
     $user = $this->input->post('user', true);
     $singer = $this->input->post('singer', true);
     $tags = $this->input->post('tags', true);
     $lrc = $this->input->post('lrc', true);
     $text = remove_xss($this->input->post('text'));
     $addtime = $this->input->post('addtime', true);
     $data['cid'] = intval($this->input->post('cid'));
     if (empty($name) || empty($data['cid'])) {
         admin_msg(L('plub_06'), 'javascript:history.back();', 'no');
     }
     //自动获取TAGS标签
     if (empty($tags)) {
         $tags = gettag($name);
     }
     $data['fid'] = intval($this->input->post('fid'));
     $data['yid'] = intval($this->input->post('yid'));
     $data['tid'] = intval($this->input->post('tid'));
     $data['reco'] = intval($this->input->post('reco'));
     $data['uid'] = intval(getzd('user', 'id', $user, 'name'));
     $data['name'] = $name;
     $data['pic'] = $this->input->post('pic', true);
     $data['lrc'] = $lrc;
     $data['text'] = $text;
     $data['color'] = $this->input->post('color', true);
     $data['cion'] = intval($this->input->post('cion'));
     $data['vip'] = intval($this->input->post('vip'));
     $data['level'] = intval($this->input->post('level'));
     $data['tags'] = $tags;
     $data['hits'] = intval($this->input->post('hits'));
     $data['yhits'] = intval($this->input->post('yhits'));
     $data['zhits'] = intval($this->input->post('zhits'));
     $data['rhits'] = intval($this->input->post('rhits'));
     $data['dhits'] = intval($this->input->post('dhits'));
     $data['chits'] = intval($this->input->post('chits'));
     $data['shits'] = intval($this->input->post('shits'));
     $data['xhits'] = intval($this->input->post('xhits'));
     $data['zc'] = $this->input->post('zc', true);
     $data['zq'] = $this->input->post('zq', true);
     $data['bq'] = $this->input->post('bq', true);
     $data['hy'] = $this->input->post('hy', true);
     $data['singerid'] = intval(getzd('singer', 'id', $singer, 'name'));
     $data['dx'] = $this->input->post('dx', true);
     $data['yz'] = $this->input->post('yz', true);
     $data['sc'] = $this->input->post('sc', true);
     $data['purl'] = $this->input->post('purl', true);
     $data['durl'] = $this->input->post('durl', true);
     $data['wpurl'] = $this->input->post('wpurl', true);
     $data['wppass'] = $this->input->post('wppass', true);
     $data['skins'] = $this->input->post('skins', true);
     $data['title'] = $this->input->post('title', true);
     $data['keywords'] = $this->input->post('keywords', true);
     $data['description'] = $this->input->post('description', true);
     if ($id == 0) {
         //新增
         $data['addtime'] = time();
         $this->CsdjDB->get_insert('dance', $data);
     } else {
         if ($data['yid'] == 0) {
             $this->dt($id);
         }
         if ($addtime == 'ok') {
             $data['addtime'] = time();
         }
         $this->CsdjDB->get_update('dance', $id, $data);
     }
     admin_msg(L('plub_07'), site_url('dance/admin/dance'), 'ok');
     //操作成功
 }
Пример #5
0
 public function save()
 {
     $id = intval($this->input->post('id'));
     $name = $this->input->post('name', true);
     $user = $this->input->post('user', true);
     $singer = $this->input->post('singer', true);
     $tags = $this->input->post('tags', true);
     $addtime = $this->input->post('addtime', true);
     $data['cid'] = intval($this->input->post('cid'));
     if (empty($name) || empty($data['cid'])) {
         admin_msg('抱歉,相册名称、分类不能为空~!', 'javascript:history.back();', 'no');
     }
     //自动获取TAGS标签
     if (empty($tags)) {
         $tags = gettag($name);
     }
     $data['yid'] = intval($this->input->post('yid'));
     $data['reco'] = intval($this->input->post('reco'));
     $data['uid'] = intval(getzd('user', 'id', $user, 'name'));
     $data['name'] = $name;
     $data['bname'] = $this->input->post('bname', true);
     $data['pic'] = $this->input->post('pic', true);
     $data['tags'] = $tags;
     $data['hits'] = intval($this->input->post('hits'));
     $data['yhits'] = intval($this->input->post('yhits'));
     $data['zhits'] = intval($this->input->post('zhits'));
     $data['rhits'] = intval($this->input->post('rhits'));
     $data['dhits'] = intval($this->input->post('dhits'));
     $data['chits'] = intval($this->input->post('chits'));
     $data['skins'] = $this->input->post('skins', true);
     $data['title'] = $this->input->post('title', true);
     $data['keywords'] = $this->input->post('keywords', true);
     $data['description'] = $this->input->post('description', true);
     if ($this->db->table_exists(CS_SqlPrefix . 'singer')) {
         //歌手表存在
         $data['singerid'] = intval(getzd('singer', 'id', $singer, 'name'));
     }
     if ($id == 0) {
         //新增
         $data['addtime'] = time();
         $this->CsdjDB->get_insert('pic_type', $data);
     } else {
         if ($data['yid'] == 0) {
             $this->dt($id);
         }
         if ($addtime == 'ok') {
             $data['addtime'] = time();
         }
         $this->CsdjDB->get_update('pic_type', $id, $data);
     }
     admin_msg('恭喜您,操作成功~!', site_url('pic/admin/type'), 'ok');
     //操作成功
 }
Пример #6
0
 public function save()
 {
     $id = intval($this->input->post('id'));
     $name = $this->input->post('name', true);
     $text = remove_xss($this->input->post('text'));
     $user = $this->input->post('user', true);
     $type = $this->input->post('type', true);
     $tags = $this->input->post('tags', true);
     $purl = $this->input->post('purl');
     $durl = $this->input->post('durl');
     $singer = $this->input->post('singer', true);
     $addtime = $this->input->post('addtime', true);
     $playform = $this->input->post('playform', true);
     $downform = $this->input->post('downform', true);
     $data['cid'] = intval($this->input->post('cid'));
     if (empty($name) || empty($data['cid'])) {
         admin_msg('抱歉,视频名称、分类不能为空~!', 'javascript:history.back();', 'no');
     }
     //自动获取TAGS标签
     if (empty($tags)) {
         $tags = gettag($name, $text);
     }
     //试听地址
     $playurl = '';
     if (!empty($purl)) {
         $k = 0;
         $purl = str_replace("\r", "", $purl);
         foreach ($purl as $value) {
             $All = explode("\n", $value);
             for ($j = 0; $j < count($All); $j++) {
                 if (!empty($All[$j])) {
                     if (strpos($All[$j], '$') === FALSE) {
                         if ($j + 1 == count($All)) {
                             $playurl .= "第" . ($j + 1) . "集\$" . $All[$j] . "\$" . $playform[$k];
                         } else {
                             $playurl .= "第" . ($j + 1) . "集\$" . $All[$j] . "\$" . $playform[$k] . "\n";
                         }
                     } else {
                         if ($j + 1 == count($All)) {
                             $playurl .= $All[$j];
                         } else {
                             $playurl .= $All[$j] . "\n";
                         }
                     }
                 }
             }
             $playurl .= "#cscms#";
             $k++;
         }
         $playurl = str_replace("\n\n", "\n", $playurl);
     }
     //下载地址
     $downurl = '';
     if (!empty($durl)) {
         $k = 0;
         $durl = str_replace("\r", "", $durl);
         foreach ($durl as $value) {
             $All = explode("\n", $value);
             for ($j = 0; $j < count($All); $j++) {
                 if (!empty($All[$j])) {
                     if (strpos($All[$j], '$') === FALSE) {
                         if ($j + 1 == count($All)) {
                             $downurl .= "第" . ($j + 1) . "集\$" . $All[$j] . "\$" . $playform[$k];
                         } else {
                             $downurl .= "第" . ($j + 1) . "集\$" . $All[$j] . "\$" . $playform[$k] . "\n";
                         }
                     } else {
                         if ($j + 1 == count($All)) {
                             $downurl .= $All[$j];
                         } else {
                             $downurl .= $All[$j] . "\n";
                         }
                     }
                 }
             }
             $downurl .= "#cscms#";
             $k++;
         }
         $downurl = str_replace("\n\n", "\n", $downurl);
     }
     //判断歌手
     if ($this->db->table_exists(CS_SqlPrefix . 'singer') && !empty($singer)) {
         //歌手表存在
         $data['singerid'] = intval(getzd('singer', 'id', $singer, 'name'));
     }
     $data['yid'] = intval($this->input->post('yid'));
     $data['tid'] = intval($this->input->post('tid'));
     $data['reco'] = intval($this->input->post('reco'));
     $data['diqu'] = $this->input->post('diqu', true);
     $data['yuyan'] = $this->input->post('yuyan', true);
     $data['uid'] = intval(getzd('user', 'id', $user, 'name'));
     $data['name'] = $name;
     $data['type'] = !empty($type) ? implode(',', $type) : '';
     $data['pic'] = $this->input->post('pic', true);
     $data['info'] = $this->input->post('info', true);
     $data['color'] = $this->input->post('color', true);
     $data['bname'] = $this->input->post('bname', true);
     $data['remark'] = $this->input->post('remark', true);
     $data['year'] = $this->input->post('year', true);
     if (empty($data['year'])) {
         $data['year'] = date('Y');
     }
     $data['cion'] = intval($this->input->post('cion'));
     $data['dcion'] = intval($this->input->post('dcion'));
     $data['vip'] = intval($this->input->post('vip'));
     $data['level'] = intval($this->input->post('level'));
     $data['zhuyan'] = $this->input->post('zhuyan', true);
     $data['daoyan'] = $this->input->post('daoyan', true);
     $data['tags'] = $tags;
     $data['pic2'] = $this->input->post('pic2', true);
     $data['phits'] = intval($this->input->post('phits'));
     $data['pfen'] = intval($this->input->post('pfen'));
     $data['hits'] = intval($this->input->post('hits'));
     $data['yhits'] = intval($this->input->post('yhits'));
     $data['zhits'] = intval($this->input->post('zhits'));
     $data['rhits'] = intval($this->input->post('rhits'));
     $data['shits'] = intval($this->input->post('shits'));
     $data['xhits'] = intval($this->input->post('xhits'));
     $data['dhits'] = intval($this->input->post('dhits'));
     $data['chits'] = intval($this->input->post('chits'));
     $data['purl'] = trim(substr($playurl, 0, -7));
     $data['durl'] = trim(substr($downurl, 0, -7));
     $data['text'] = $text;
     $data['skins'] = $this->input->post('skins', true);
     $data['title'] = $this->input->post('title', true);
     $data['keywords'] = $this->input->post('keywords', true);
     $data['description'] = $this->input->post('description', true);
     if ($id == 0) {
         //新增
         $data['addtime'] = time();
         $this->CsdjDB->get_insert('vod', $data);
     } else {
         if ($data['yid'] == 0) {
             $this->dt($id);
         }
         if ($addtime == 'ok') {
             $data['addtime'] = time();
         }
         $this->CsdjDB->get_update('vod', $id, $data);
     }
     admin_msg('恭喜您,操作成功~!', site_url('vod/admin/vod'), 'ok');
     //操作成功
 }