Server : nginx/1.22.1
System : Linux iZwz9daxib3w3i063fw434Z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/www.jkmold.com/phpcms/modules/banner/templates/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/www.jkmold.com/phpcms/modules/banner/templates/banner_cate.tpl.php
<?php

defined('IN_ADMIN') or exit('No permission resources.');

include $this->admin_tpl('header','admin');?>

<style type="text/css"> 

.banner_table{

	width:100%;

}

.banner_table tbody tr {

	border-bottom:1px solid #ddd;

}

.banner_table tbody tr td{

	height:45px;

}

.banner_table tbody tr .td1{

	width:10%;

	text-align:right;

}



.banner_table tbody tr .td2{

	width:90%;

	text-align:left;

	

}

.banner_table tbody tr .td2 input{

	height:25px;

}

.banner_table tbody tr .td2 .txt{

	width:30%;

	

}

#addsubmit{

	width:120px;

	height:35px;

	background:red;

	color:#fff;

	border:0px;

}



.table_form thead tr th,.table_form tbody tr td{

	text-align:center;

	border:1px solid #ddd;

}

.table_form thead tr th{

	font-size:15px;

}

 .w1 {

	width:10%;

}

.w2 {

	width:30%;

}

.w3 {

	width:30%;

}

.w4 {

	width:30%;

}



.w1 input{

	

	text-align:center;

}

</style>



<div class="pad-10">

<form action="?m=banner&c=banner&a=banner_cate" method="post" id="myform">

<input type="hidden" value="<?php echo $siteid ?>" name="info[siteid]" />

<table width="100%" cellspacing="0" class="search-form banner_table">

    <tbody>

		<tr>

		<td class="td1">分类名称:</td>

		<td class="td2"><input type="text" name="info[title]" placeholder="分类名称"/></td>

		</tr>

		<tr>

		<td class="td1">分类描述:</td>

		<td class="td2" style="height:70px"><textarea name="info[description]" id="description" rows="3" cols="50" placeholder="描述可以不填"></textarea></td>

		</tr>

		<tr>

				<td class="td1">&nbsp;</td>

				<td class="td2">

					<input type="submit" name="addsubmit" id="addsubmit" value="添加" />

					

				</td>

			</tr>

    </tbody>

</table>



</form>

<table class="table_form" style="width:100%" >



<thead> 

	<tr>

		

		

		<th>分类id</th>

		<th>标题</th>

		

		<th>描述</th>

		<th>操作</th>

	</tr>

	

</thead>

<tbody> 

<?php foreach($banner_cates as $v):?>

	<tr>

	<td class="w1"><?php echo $v['bannerid']?></td>

	<td class="w2"><?php echo $v['title']?></td>

	<td class="w3"><?php echo $v['description']?></td>

	<td class="w4">

		<a href="javascript:banner_del(<?php echo $v['bannerid']?>,1);">删除</a>&ensp;|&ensp;

		<a href="?m=banner&c=banner&a=banner_edit&cateedit=1&pc_hash=<?php echo $_SESSION['pc_hash']?>&id=<?php echo $v['bannerid']?>">编辑</a>

	</td>

	</tr>

<?php endforeach;?>

</tbody>

</table>

</div>





</body>

<script type="text/javascript">

function banner_del(id,mid){

	layer.confirm('您确定要删除吗,删除不可恢复?', {

		btn: ['确定','取消'] //按钮

		}, function(){

		var url='?m=banner&c=banner&a=banner_delete&pc_hash='+pc_hash;

		$.post(url, {id:id,mid:mid},function(data){

			layer.msg(data.title, {time: data.times, icon:data.icon},function(){

				window.location.reload()

			});

		}, "json");

	});

}

</script>

</html>