code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档自动摘要、自动分页</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">批量管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<form action="action/article_description_action.php" name="form1" target="stafrm">
<tr>
<td height="20" bgcolor="#EDF9D5"> <table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" height="18"><strong>文档自动摘要、自动分页:</strong></td>
<td width="70%" align="right"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="33" bgcolor="#FFFFFF"> 本向用于自动更新你系统没有填写摘要的文档的摘要信息或更新没分页的文档的自动分页标识(文档使用了自动分页后会降低HTML生成速度,并且在没人工干扰的情况下可能导致分页内容的HTML错误,请小心使用此功能)。</td>
</tr>
<tr>
<td height="48" bgcolor="#FFFFFF"><table width="90%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="50%">频道ID:
<input name="channel" type="text" id="channel" value="1" size="10">
(可在“<a href="mychannel_main.php"><u>频道模型管理</u></a>”处获得)</td>
<td width="50%">摘要大小:
<input name="dsize" type="text" id="dsize" size="15" value="<?php echo $cfg_auot_description?>">
(最大250字节)</td>
</tr>
<tr>
<td>数据表:
<input name="table" type="text" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" size="20"></td>
<td>分析字段:
<input name="field" type="text" id="field2" value="body" size="15"></td>
</tr>
<tr>
<td>最小值:
<input name="msize" type="text" id="msize2" value="512" size="10">
(字节,内容大于该值才分析)</td>
<td>每批处理:
<input name="pagesize" type="text" id="pagesize" value="100" size="10">
条记录</td>
</tr>
<tr>
<td>开始ID:
<input name="sid" type="text" id="sid3" size="8">
结束ID:
<input name="eid" type="text" id="eid" size="8"></td>
<td> </td>
</tr>
<tr>
<td>操 作:
<input name="dojob" type="radio" value="des" checked>
自动摘要
<input type="radio" name="dojob" value="page">
自动分页 </td>
<td>(自动分页大小:
<?php echo $cfg_arcautosp_size?>
K,<a href='sys_info.php'><u>修改系统参数</u></a>)</td>
</tr>
</table></td>
</tr>
<tr>
<td height="31" bgcolor="#F8FBFB" align="center">
<input type="submit" name="Submit" value="开始执行分析" class="inputbut">
</td>
</tr>
</form>
<tr bgcolor="#E5F9FF">
<td height="20" bgcolor="#EDF9D5"> <table width="100%">
<tr>
<td width="74%"><strong>结果:</strong></td>
<td width="26%" align="right"> <script language='javascript'>
function ResizeDiv(obj,ty)
{
if(ty=="+") document.all[obj].style.pixelHeight += 50;
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
}
</script>
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td id="mtd"> <div id='mdv' style='width:100%;height:100;'>
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
</div>
<script language="JavaScript">
document.all.mdv.style.pixelHeight = screen.height - 420;
</script> </td>
</tr>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/article_desction_main.htm | HTML | asf20 | 4,625 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>管理员帐号--更改帐号</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">系统帐号管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<tr>
<td height="19" bgcolor="#EDF9D5">
<table width="96%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="24%"><b><strong> 帐号信息统计:</strong></b> </td>
<td width="76%" align="right"><strong><a href="sys_admin_user.php"><u>管理帐号</u></a></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="1" cellspacing="1" class="tblist">
<tr>
<td width="16%" height="24">用户登录ID:</td>
<td width="84%" align="left"><?php echo $row['userid']?></td>
</tr>
<tr>
<td height="24">用户笔名:</td>
<td align="left"><?php echo $row['uname']?></td>
</tr>
<tr>
<td height="24">真实姓名:</td>
<td align="left"><?php echo $row['tname']?></td>
</tr>
<tr>
<td height="24">用户类型:</td>
<td align="left"><?php
$myrow = $dsql->GetOne(" Select * from #@__admintype where rank='{$row['usertype']}' ");
echo $myrow['typename'];
?>
</td>
</tr>
<tr>
<td height="24">负责频道:</td>
<td align="left"><?php
$typeOptions = "";
$typeids = Array();
if($row['typeid']!='')
{
$typeids = explode(',',$row['typeid']);
$dsql->Execute('op',"Select ID,typename From #@__arctype where reID=0 And (ispart=0 Or ispart=1)");
while($row1 = $dsql->GetObject('op'))
{
if(in_array($row1->ID,$typeids)){ echo "{$row1->typename}、"; }
$dsql->Execute('s',"Select ID,typename From #@__arctype where reID={$row1->ID} And (ispart=0 Or ispart=1)");
while($row2 = $dsql->GetObject('s')){
if(in_array($row2->ID,$typeids)){ echo "{$row2->typename}、"; }
}
}
}else{
echo "所有频道";
}
?>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="96%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6EDA5" style="margin-top:8px;">
<tr>
<td height="28" bgcolor="#EDF9D5" class="ct_td"><strong>历史文档统计:</strong></td>
</tr>
<tr>
<td height="28" bgcolor="#FFFFFF" class="ct_td">
<table width="100%" border="0" cellspacing="5" cellpadding="3">
<?php
$adminid = $ID;
$row = '';
//季度、月份起始时间
$ntime = time();
$y = strftime("%Y",$ntime);
$m = strftime("%m",$ntime);
//当年
$ystart = GetMkTime("{$y}-01-01");
//当月
$mstart = GetMkTime("{$y}-{$m}-01");
//当季
$j = floor($m%3)+1;
$ms = ($j * 3) - 2;
if($ms<1) $ms = 1;
$qstart = GetMkTime("{$y}-{$ms}-01");
$dsql->SetQuery("Select ID,maintable,typename From `#@__channeltype` ");
$dsql->Execute('me');
$color = '#F1FAD6';
$j = 0;
while($row = $dsql->GetArray('me',MYSQL_ASSOC))
{
$j++;
$color = ($j%2!=0 ? '#F1FAD6' : '#FCFDEE');
$tcc = $tac = $ycc = $yac = $qcc = $qac = $mcc = $mac = 0;
$maintable = ($row['maintable']=='' ? $row['maintable'] : '#@__archives');
$channelid = $row['ID'];
$dsql->SetQuery("Select click,senddate From `$maintable` where adminid='$adminid' And channel='$channelid' ");
$dsql->Execute('c');
$allrow = $dsql->GetTotalRow('c');
if($allrow<1) continue;
while($rowc = $dsql->GetArray('c',MYSQL_ASSOC))
{
if($rowc['senddate']>$mstart){
$mac++; $mcc += $rowc['click'];
$qac++; $qcc += $rowc['click'];
$yac++; $ycc += $rowc['click'];
}else if($rowc['senddate']>$qstart){
$qac++; $qcc += $rowc['click'];
$yac++; $ycc += $rowc['click'];
}else if($rowc['senddate']>$ystart){
$yac++; $ycc += $rowc['click'];
}
$tcc += $rowc['click'];
$tac++;
}
$dsql->FreeResult('c');
?>
<tr style='background-color:<?php echo $color; ?>'>
<td width="14%" height="42">
·<?php echo $row['typename']; ?>
</td>
<td width="86%">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC" align="center">
<tr align="center" bgcolor='#F4FAE7'>
<td width='16%' height="24" bgcolor="#F4FAE7">项目</td>
<td width='21%'> 月 </td>
<td width='21%'> 季 </td>
<td width='21%'> 年 </td>
<td> 总 </td>
</tr>
<tr align='center' bgcolor='#ffffff'>
<td height="24" bgcolor="#ffffff">文档</td>
<td><?php echo $mac; ?></td>
<td><?php echo $qac; ?></td>
<td><?php echo $yac; ?></td>
<td><?php echo $tac; ?></td>
</tr>
<tr align='center' bgcolor='#ffffff'>
<td height="24" bgcolor="#ffffff">点击</td>
<td><?php echo $mcc; ?></td>
<td><?php echo $qcc; ?></td>
<td><?php echo $ycc; ?></td>
<td><?php echo $tcc; ?></td>
</tr>
</table>
</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/sys_admin_user_tj.htm | HTML | asf20 | 5,553 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={dede:cfg_language/}">
<title>{dede:wintitle/}</title>
<link rel="stylesheet" type="text/css" href="base.css">
</head>
<body leftmargin="8">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#A5D0F1" style="BORDER-COLLAPSE: collapse">
<tr>
<td width="100%" height="64" background="img/indextitlebg.gif">
<img src="img/ddlogo.gif" width="258" height="51" alt="Power by DedeCms V5.0"> </td>
</tr>
<tr>
<td width="100%" height="20" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"> {dede:wecome_info/} </td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" height="1" background="img/sp_bg.gif"></td>
</tr>
<tr>
<td width="100%" height="4"></td>
</tr>
<tr>
<td width="100%" height="20">
{dede:winform/}
</td>
</tr>
<tr>
<td width="100%" height="2" valign="top"></td>
</tr>
</table>
<p align="center">
{dede:lang_cms_powerby/}
<br>
<br>
</p>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/winmode.htm | HTML | asf20 | 1,176 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>管理员帐号--更改帐号</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">系统帐号管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<tr>
<td height="19" bgcolor="#EDF9D5">
<table width="96%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="24%"><b><strong> 更改帐号</strong></b> </td>
<td width="76%" align="right"><strong><a href="sys_admin_user.php"><u>管理帐号</u></a></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td height="215" align="center" valign="top" bgcolor="#FFFFFF">
<form name="form1" action="sys_admin_user_edit.php" method="post">
<input type="hidden" name="dopost" value="saveedit">
<input type="hidden" name="ID" value="<?php echo $row['ID']?>">
<table width="100%" border="0" cellpadding="1" cellspacing="1" class="tblist">
<tr>
<td width="16%" height="30">用户登录ID:</td>
<td width="84%" align="left"><?php echo $row['userid']?></td>
</tr>
<tr>
<td height="30">用户笔名:</td>
<td align="left"><input name="uname" type="text" id="uname" size="16" value="<?php echo $row['uname']?>" style="width:150"> (发布文章后显示责任编辑的名字)</td>
</tr>
<tr>
<td height="30">用户密码:</td>
<td align="left"><input name="pwd" type="text" id="pwd" size="16" style="width:150"> (空不变,只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符)</td>
</tr>
<tr>
<td height="30">用户类型:</td>
<td align="left">
<select name='usertype' style='width:150'>
<?php
$dsql->SetQuery("Select * from #@__admintype order by rank asc");
$dsql->Execute("ut");
while($myrow = $dsql->GetObject("ut"))
{
if($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected>".$myrow->typename."</option>\r\n";
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n";
}
?>
</select>
</td>
</tr>
<tr>
<td height="30">负责频道:</td>
<td align="left">
<select name="typeid[]" style="width:250" size="10" id="typeid" multiple>
<?php
$typeOptions = "";
$typeids = Array();
if($row['typeid']!=''){
$typeids = explode(',',$row['typeid']);
echo "<option value='0'>--所有频道--</option>";
}else{
echo "<option value='0' selected>--所有频道--</option>";
}
$dsql->SetQuery("Select ID,typename From #@__arctype where reID=0 And (ispart=0 Or ispart=1)");
$dsql->Execute('op');
while($row1 = $dsql->GetObject('op')){
if(!in_array($row1->ID,$typeids)) echo "<option value='{$row1->ID}'>{$row1->typename}</option>\r\n";
else echo "<option value='{$row1->ID}' selected>{$row1->typename}</option>\r\n";
$dsql->SetQuery("Select ID,typename From #@__arctype where reID={$row1->ID} And (ispart=0 Or ispart=1)");
$dsql->Execute('s');
while($row2 = $dsql->GetObject('s')){
if(!in_array($row2->ID,$typeids)) echo "<option value='{$row->ID}-{$row2->ID}'> --{$row2->typename}</option>\r\n";
else echo "<option value='{$row1->ID}-{$row2->ID}' selected> --{$row2->typename}</option>\r\n";
}
}
?>
</select>
<br/>
使用 Ctrl 进行多选,如果选择了顶级目录,子目录将自动被授权为可管理。 </td>
</tr>
<tr>
<td height="30">真实姓名:</td>
<td align="left"><input name="tname" type="text" id="tname" size="16" style="width:150" value="<?php echo $row['tname']?>"> </td>
</tr>
<tr>
<td height="30">电子邮箱:</td>
<td align="left"><input name="email" type="text" id="email" size="16" style="width:150" value="<?php echo $row['email']?>"> </td>
</tr>
<tr>
<td height="30"> </td>
<td align="left"><input type="submit" name="Submit" value=" 保存用户 " class="inputbut"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/sys_admin_user_edit.htm | HTML | asf20 | 4,855 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language="javascript">
function LoadHashCode()
{
var tgobj = document.getElementById('modulcode');
var email = document.form1.email.value;
var modulname = document.form1.modulname.value;
var myajax = new DedeAjax(tgobj,false,true,'-','-','...');
myajax.SendGet2('module_make.php?action=gethash&email='+email+'&modulname='+modulname);
DedeXHTTP = null;
}
</script>
<title>模块打包</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<style>
td{padding-left:8px}
</style>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">模块管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<form action="module_make.php" method="post" enctype="multipart/form-data" name="form1">
<input type='hidden' name='action' value='edit'>
<tr>
<td height="20" colspan="2" bgcolor="#EDF9D5"> <b> <a href="module_main.php"><u>模块管理</u></a>
> 模块打包:</b> </td>
</tr>
<tr>
<td width="19%" align="center" bgcolor="#FFFFFF">模块名称:</td>
<td width="81%" bgcolor="#FFFFFF">
<input name="modulname" type="text" id="modulname" style="width:180px" value="<?php echo $modulname; ?>"/>
</td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">联系Email:</td>
<td bgcolor="#FFFFFF"><input name="email" type="text" id="email" style="width:180px" value="<?php echo $email; ?>"/> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">模块识别码:</td>
<td bgcolor="#FFFFFF">
<input type='hidden' name='hash' value='<?php echo $hash; ?>' />
<input type='text' name='hashv' value='<?php echo $hash; ?>' style="width:280px" />(不可改)
</td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">开发团队:</td>
<td bgcolor="#FFFFFF"><input name="team" type="text" id="team" style="width:180px" value="<?php echo $team; ?>" /> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">发布时间:</td>
<td bgcolor="#FFFFFF">
<input name="mtime" type="text" id="mtime" style="width:180px" value="<?php echo $mtime; ?>"/>
</td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">官方网址:</td>
<td bgcolor="#FFFFFF"><input name="url" type="text" id="url" style="width:180px" value="<?php echo $url; ?>" /> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">协议文件:</td>
<td bgcolor="#FFFFFF">
<input name="readme" type="file" id="readme" style="width:350px" />
(不上传则使用旧文件,以下同)
</td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">安装程序:</td>
<td bgcolor="#FFFFFF"><input name="setup" type="file" id="setup" style="width:350px" /></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">删除程序:</td>
<td bgcolor="#FFFFFF"><input name="uninstall" type="file" id="uninstall" style="width:350px" /></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">文件列表:</td>
<td bgcolor="#FFFFFF"><p>每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件。<br />
如:<br />
如果已经指定了: ../book 则不需要再指定目录里的 ../book/index.php 等文件或目录,系统会自动索引整个目录,<br />
对于不需要索引整个目录的,请不要指定这个目录,否则可能会把不必要的文件也放进模块中。 <br>
<textarea name="filelist" rows="8" id="filelist" style="width:60%"><?php echo $filelist; ?></textarea>
</p>
</td>
</tr>
<tr bgcolor="#F9FDF0">
<td height="28" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="26%"> </td>
<td width="15%"><input name="imageField" type="submit" class="inputbut" value="提交" /></td>
<td width="59%"><input type="button" name="button" id="button" value="返回" onClick="location='plus_main.php';" class="inputbut" /></td>
</tr>
</table></td>
</tr>
</form>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/module_edit.htm | HTML | asf20 | 4,826 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>通用文档发布器</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<body topmargin="8">
<form name="form1" action="action/archives_add_action.php" enctype="multipart/form-data" method="post" onSubmit="return CS_ArchivesAdd();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td height="30"> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a>>>发布新档案</td>
<td width="31%" align="right"> <a href="catalog_main.php">[<u>栏目管理</u>]</a> </td>
<td width="1%"> </td>
</tr>
</table>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" class="htable">
<tr>
<td colspan="2" bgcolor="#E2F5BC">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" height="24" align="center" bgcolor="#FFFFFF"> 常规内容 </td>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onClick="ShowItem2()"><u>附加参数</u></a></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="border-bottom:1px solid #CCCCCC;display:none">
<tr>
<td colspan="2" bgcolor="#E2F5BC">
<table height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onClick="ShowItem1()"><u>常规内容</u></a> </td>
<td width="84" align="center" bgcolor="#FFFFFF">附加参数 </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset">
<tr>
<td width="400%" height="24" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 文档标题:</td>
<td width="250"> <input name="title" type="text" id="title" style="width:230px">
</td>
<td width="90">附加参数:</td>
<td>
<input name="iscommend" type="checkbox" id="iscommend" value="11" >
推荐
<input name="isbold" type="checkbox" id="isbold" value="5" >
加粗
<input name="isjump" type="checkbox" id="isjump" value="1" onClick="ShowUrlTr()" >
跳转网址
<input name="ispic" type="checkbox" id="ispic" onClick="ShowPicTr()" value="1" checked>
图片
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="24" colspan="4" class="bline" id="redirecturltr" style="display:none">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 跳转网址:</td>
<td>
<input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="">
(外部网址需加 "http://" ,本站的用 "/" 表示根网址)
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="24" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> Tag标签:</td>
<td>
<input name="tag" type="text" id="tag" style="width:300px" value="">
(用空格或','分开)
</td>
</tr>
</table>
</td>
</tr>
<tr id="pictable" style="display:block">
<td height="24" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="135" height="81"> 缩 略 图:<br/> <input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' onClick="CkRemote('ddisremote','litpic')">
远程图片 <br> </td>
<td width="464"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="30"> 本地上传请点击“浏览”按钮
<input name="litpic" type="file" id="litpic" style="width:200px" onChange="SeePic(document.picview,document.form1.litpic);">
</td>
</tr>
<tr>
<td height="30"> <input name="picname" type="text" id="picname" style="width:250px">
<input type="button" name="Submit2" value="在网站内选择" style="width:120px" onClick="SelectImage('form1.picname','small');" class="inputbut">
</td>
</tr>
</table></td>
<td width="201" align="center"><img src="img/pview.gif" width="150" id="picview" name="picview"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" colspan="4" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 主栏目:</td>
<td width="400">
<?php
if(empty($cid) && empty($cfg_cat_seltype)) echo GetTypeidSel('form1','typeid','selbt1',$channelid);
else{
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' style='width:300px'>\r\n";
echo "<option value='0'>请选择主分类...</option>\r\n";
echo $typeOptions;
echo "</select>";
}
?></td>
<td>(只允许在白色选项的栏目中发布当前类型内容)</td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding:0px">
<?php
PrintAutoFieldsAdd($cInfos['fieldset'],'all','90');
?>
</td>
</tr>
<tr>
<td height="24" class="bline">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 附加选项:</td>
<td>
<input name="remote" type="checkbox" id="remote" value="1" checked>
下载远程图片和资源
<input name="dellink" type="checkbox" id="dellink" value="1">
删除非站内链接
<input name="autolitpic" type="checkbox" id="autolitpic" value="1" />
提取第一个图片为缩略图
</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="display:none">
<tr>
<td height="24" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 副 栏 目:</td>
<td>
<?php echo GetTypeidSel('form1','typeid2','selbt2',$channelid)?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="24" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 简略标题:</td>
<td width="250"> <input name="shorttitle" type="text" id="shorttitle" style="width:150px"> </td>
<td width="90">自定义属性:</td>
<td> <select name='arcatt' style='width:150px'>
<option value='0'>普通文档</option>
<?php
$dsql->SetQuery("Select * From #@__arcatt order by att asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
echo "<option value='{$trow->att}'>{$trow->attname}(att={$trow->att})</option>";
}
?>
</select> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 发布时间:</td>
<td width="241">
<?php
$nowtime = GetDateTimeMk(mytime());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
?> </td>
<td width="88">消费点数:</td>
<td width="381"> <input name="money" type="text" id="money" value="0" size="10"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 文档来源:</td>
<td width="240"><input name="source" type="text" id="source" style="width:160px" size="16">
<input name="selsource" type="button" id="selsource" value="选择" class="inputbut"></td>
<td width="90">作 者:</td>
<td> <input name="writer" type="text" id="writer" style="width:120px">
<input name="selwriter" type="button" id="selwriter" value="选择" class="inputbut"> </td>
</tr>
</table> </td>
</tr>
<tr>
<td height="24" colspan="4" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="22"> 文档排序:</td>
<td width="240"> <select name="sortup" id="sortup" style="width:150px">
<option value="0" selected>默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select> </td>
<td width="90">标题颜色:</td>
<td> <input name="color" type="text" id="color" style="width:120px">
<input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor()" class="inputbut"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 阅读权限:</td>
<td width="240"> <select name="arcrank" id="arcrank" style="width:150px">
<?php
$dsql->SetQuery("Select * from #@__arcrank ");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
}
?>
</select> </td>
<td width="90">发布选项:</td>
<td> <input name="ishtml" type="radio" value="1" checked>
生成HTML
<input type="radio" name="ishtml" value="0">
仅动态浏览</td>
</tr>
</table></td>
</tr>
<tr>
<td height="76" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="51"> 文档摘要:</td>
<td width="446"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="76" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="51"> 关键字:</td>
<td width="446"><textarea name="keywords" rows="3" id="keywords" style="width:80%"></textarea></td>
<td>用空格分开<br/>
<input type="button" name="Submit" value="浏览..." style="width:56px;height:20" onClick="SelectKeywords('form1.keywords');" class="inputbut" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="76" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 相关文档:</td>
<td width="446">
<textarea name="likeid" rows="3" id="likeid" style="width:80%;"></textarea> </td>
<td>把文档ID,用逗号“,”分开<br/>
<input name="lsel" type="button" id="lsel" class="nbt" style="width:150px" onChange="" value="从已发布文档中选取..." onClick="SelectArcListA('form1.likeid');"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="56" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="17%"> </td>
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="115" height="36"><input name="imageField" type="submit" class="inputbut" value="确定" /></td>
<td width="99"><a href="catalog_main.php">
<input name="button" type="reset" class="inputbut" id="button" value="重置"/>
</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</form>
<script language='javascript'>
InitPage();
if($Nav()!="IE") ShowObj('adset');
</script>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/archives_add.htm | HTML | asf20 | 14,633 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档管理</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script type="text/javascript" src="main.js"></script>
<script language="javascript" src='arclist.js'></script>
<style type="text/css">
<!--
td{ padding-left:3px; }
-->
</style>
</head>
<body leftmargin="8"topmargin="8" onLoad="ContextMenu.intializeContextMenu()">
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">文档维护</div>
<div style='float:right;padding-top:8px;padding-right:16px;'>
<select name='channelid' style='width:110px' onchange="location=this.value;">
<?php echo GetChannelOptopns($dsql,$channelid); ?>
</select>
</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<tr>
<td height="26">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="33" align="center" style="padding-top:6px">
<input type='button' onClick="location='catalog_do.php?channelid=<?php echo $channelid?>&cid=<?php echo $cid?>&dopost=addArchives';" value='添加文档' class='inputbut'>
<?php if($adminid>0){ ?>
<input type='button' onClick="location='content_list.php?channelid=<?php echo $channelid?>&cid=<?php echo $cid?>&adminid=0';" value='全部文档' class='inputbut'>
<?php }else{ ?>
<input type='button' onClick="location='content_list.php?channelid=<?php echo $channelid?>&cid=<?php echo $cid?>&adminid=<?php echo $cuserLogin->getUserID()?>';" value='我的文档' class='inputbut'>
<?php }
echo $CheckUserSend
?>
<input type='button' onclick="location='catalog_main.php';" value='栏目管理' class='inputbut' />
<input type='button' name='bb1' onclick="location='makehtml_list.php?cid=<?php echo $cid?>';" value='更新列表' class='inputbut' />
<input type='button' name='bb2' onclick="location='makehtml_archives.php?cid=<?php echo $cid?>';" value='更新文档' class='inputbut' />
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width='96%' border='0' cellpadding='1' cellspacing='1' style="background:#E2F5BC;margin-top:6px" align="center">
<tr height='26'>
<td colspan='7' bgcolor="#EDF9D5">
§<?php echo $positionname?>文档列表 (使用鼠标右键进行常用操作)</td>
</tr>
<tr bgcolor="#F8FBFB" align="center">
<td width="13%" style="padding:3px">文档图片</td>
<td width="35%">文档标题</td>
<td width="12%">类目</td>
<td width="11%">权限</td>
<td width="10%">管理员</td>
<td width="10%">HTML</td>
<td width="9%">点击</td>
</tr>
<form name="form2">
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
?>
<tr height='68'>
<td width="13%" align="center" bgcolor="#FFFFFF">
<img src="<?php echo CheckPic($row['litpic']); ?>" width="80" height="60" alt="文档图片" border="0">
</td>
<td width="35%" bgcolor="#FFFFFF">
<input name="arcID" type="checkbox" id="arcID" value="<?php echo $row['ID']?>" class="np" />
<b>
<a href="archives_do.php?aid=<?php echo $row['ID']?>&dopost=editArchives" oncontextmenu="ShowMenu(this,<?php echo $row['ID']?>,'<?php echo urlencode($row['title'])?>')">
<u><?php echo $row['title']; ?></u>
</a>
<br />
发布时间:<?php echo GetDateTimeMk($row['senddate']); ?>
</b>
</td>
<td width="12%" height="26" align="center" bgcolor="#FFFFFF">
<?php echo $row['typename']?>
<br>
ID: <?php echo $row['ID']?></td>
<td width="11%" align="center" bgcolor="#FFFFFF"><?php echo GetRankName($row['arcrank'])?></td>
<td width="10%" align="center" bgcolor="#FFFFFF"><?php echo $row['adminname']?></td>
<td width="10%" align="center" bgcolor="#FFFFFF"><?php echo IsHtmlArchives($row['ismake'])?></td>
<td width="9%" align="center" bgcolor="#FFFFFF"><?php echo $row['click']?></td>
</tr>
<?php
}
?>
</form>
<tr>
<td height="28" colspan='7' style="padding-left:6px;padding-top:8px;background-color:#F5FBE6">
<a href="javascript:selAll()" class="inputbutx">全选</a>
<a href="javascript:noSelAll()" class="inputbutx">取消</a>
<a href="javascript:viewArc(0)" class="inputbutx">查看</a>
<a href="javascript:editArc(0)" class="inputbutx">更改</a>
<a href="javascript:updateArc(0)" class="inputbutx">更新</a>
<a href="javascript:checkArc(0)" class="inputbutx">审核</a>
<a href="javascript:adArc(0)" class="inputbutx">推荐</a>
<a href="javascript:moveArc(0)" class="inputbutx">移动</a>
<a href="javascript:delArc(0)" class="inputbutx">删除</a>
</td>
</tr>
<tr>
<td height="28" colspan='7' align='center' style="background-color:#EEF7D2">
<?php echo $dlist->GetPageList(7);?></td>
</td>
</tr>
</table>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td height="4"></td>
</tr>
<tr>
<td style="border: 1px solid #525252;" height="26">
<table width='100%' border='0' cellpadding='0' cellspacing='1'>
<tr>
<form action='content_i_list.php' method='get' name='form3' id="form3">
<input type='hidden' name='dopost' value='listArchives' />
<td>
<table width='720' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='90' align='center'>请选择类目:</td>
<td width='160'>
<?php echo $optionarr?>
</td>
<td width='70'>
关键字:
</td>
<td width='160'>
<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>
</td>
<td width='110'>
<select name='orderby' style='width:100'>
<option value='ID'>排序...</option>
<option value='senddate'>录入时间</option>
<option value='pubdate'>发布时间</option>
<option value='sortrank'>置顶权值</option>
<option value='click'>点击量</option>
<option value='postnum'>评论次数</option>
<option value='lastpost'>最后评论</option>
</select>
</td>
<td>
<input name="imageField" type="submit" class="inputbut" value="搜索">
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="4"></td>
</tr>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/content_i_list.htm | HTML | asf20 | 6,845 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档批量管理</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">批量管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<form name="form2" action="content_batchup_action2.php" target="stafrm" method="post">
<input type="hidden" name="dopost" value="go">
<tr>
<td height="20" colspan="2" >
<table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" height="18"><strong> 错误文档修正:</strong></td>
<td width="70%" align="right"> </td>
</tr>
</table></td>
</tr>
<tr height="20" bgcolor="#FFFFFF">
<td height="20" colspan="2" align="center" bgcolor="#FFFFFF" style="padding-top:6px">
!警告:清空错误数据将删除所有频道不正确,栏目不正确的数据,且不可恢复,请慎重使用
</td>
</tr>
<tr height="20" bgcolor="#FFFFFF">
<td height="20" colspan="2" align="center" bgcolor="#FFFFFF" style="padding-top:6px">
<input type='radio' value='modddpic' name='action' class='np' checked>
更正缩图错误
<input type='radio' value='delerrdata' name='action' class='np'>
清空错误的文档数据</td>
</tr>
<tr>
<td height="31" colspan="2" bgcolor="#F8FBFB" align="center" style="padding-top:6px">
<input name="b112" type="button" value="开始操作" onClick="document.form2.submit();" class="inputbut" />
</td>
</tr>
</form>
<tr bgcolor="#E5F9FF">
<td height="20" colspan="2" bgcolor="#EDF9D5"> <table width="100%">
<tr>
<td width="74%"><strong>进行状态: </strong></td>
<td width="26%" align="right"> <script language='javascript'>
function ResizeDiv(obj,ty)
{
if(ty=="+") document.all[obj].style.pixelHeight += 50;
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
}
</script>
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] </td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" id="mtd">
<div id='mdv' style='width:100%;height:250px;'>
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
</div>
</td>
</tr>
</table>
</body>
</html>
| zyyhong | trunk/jiaju001/news/lic/templets/content_batch_up2.htm | HTML | asf20 | 2,975 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--<?php
print <<<EOT
-->
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>类别管理</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">营销模块</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr><td bgcolor="#ffffff">
[<a href="code_main.php">登录营销平台</a>]
[<a href="code_main.php?action=key">获取通用密钥</a>]
[<a href="code_main.php?action=info">社区营销介绍</a>]
[<a href="code_main.php?action=prompt">注意事项</a>]
</td></tr>
</table>
<br>
<!--
EOT;
if(!$action){print <<<EOT
-->
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr><td height="25" bgcolor="#EDF9D5"><b>帮助信息</b></td>
</tr>
<tr>
<td height="29" bgcolor="#ffffff" style="line-height:150%">
·在使用前请先注册一个帐号,注册帐号会要求填写通用密钥,点击“[<a href="code_main.php?action=key">获取通用密钥</a>]”可获得。 </li> </td>
</tr>
</table>
<br />
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr><td height="25" colspan=2 bgcolor="#EDF9D5">登录营销平台</td>
</tr>
<tr>
<td bgcolor="#ffffff" style="line-height:150%" valign="top" align="center"><br />
<b>请输入您在营销平台的用户名和密码</b> <br />
<br />
<form name="form" action="$basename&" method="post" target="_blank">
<input type=hidden value=2 name=step>
<input type=hidden value=3600 name=cktime>
<input type=hidden name=jumpurl>
<table cellspacing="1" cellpadding="0" width="400" align="center">
<tbody>
<tr>
<td><table cellspacing="0" cellpadding="3" width="100%" class=i_table>
<tbody>
<tr bgcolor="#ffffff">
<td valign="center" align="right" width="40%">请输入帐号ID</td>
<td valign="center"><input name="lguser" type="text" size="25" /></td>
</tr>
<tr bgcolor="#ffffff">
<td valign="center" align="right">请输入密码</td>
<td valign="center"><input type="password" name="lgpwd" size="25" /></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br />
<input type="submit" value="登录营销平台" name="submit" class="inputbut"/> <a href="http://union.phpwind.com/index.php?action=reg&key1=$cfg_siteid&key2=$cfg_siteownerid&sitehash=$cfg_sitehash" target="_blank"><font color="blue">注册营销平台帐号</font></a>
</form>
<br />
</td>
</tr>
</table>
<!--
EOT;
}elseif($action=='prompt'){print <<<EOT
-->
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tbody>
<tr>
<td height="25"><B>注意事项</B></td>
</tr>
<tr>
<td bgcolor="#ffffff" style="LINE-HEIGHT: 150%"> 当您开启论坛营销模块时,由于模块需要分析并读取您的页面数据,可能会耗损部分站点页面执行效率,这是由于您选择的论坛营销模块特性及营销提供商的数据传送而产生的,正常情况下,并无明显影响,如遇特殊情况,导致站点访问效率明显下降时,可能由于营销提供商数据传送时出现了网络故障,这时我们建议您根据影响的程序考虑关闭部分营销模块,以确保站点的正常运行,并反馈相关信息至相应营销模块提供商,获取支持!
<BR>
<BR><B>意见反馈:</B><BR>
PHPWind社区营销官方网站:<a href="http://union.phpwind.com" target="_blank">http://union.phpwind.com</a><BR></td>
</tr></tbody></table>
<!--
EOT;
}elseif($action=='info'){print <<<EOT
-->
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr><td height="25"><b>社区营销介绍</b></td>
</tr>
<tr><td bgcolor="#ffffff" style="LINE-HEIGHT: 150%" vAlign=top><p>
PHPWind社区营销是帮助广大站长获取收益的<b>一站式营销</b>联盟平台。平台以BBS(社区、论坛)营销为出发点,结合当前多款主流BBS通用型系统和被广泛认可的广告模式为基础,以及社区站长赢利难的现状,依托PHPWind在互联网软件/服务行业的多年产品研发与市场拓展能力,而建立的多功能网络广告营销平台。 </p>
<p><strong>什么是一站式营销? </strong><br>
系统集成营销模块,站长只需在后台轻松操作,即可完成站点的广告投放并获取收益。<br>
PHPWind一站式营销联盟致力于打造专属于社区的广告营销联盟,将为站长们提供的是:</p>
<ol>
<li>轻松的后台操作:搭建PHPWind一站式营销平台作为中转站,使站长仅在自身站点后台操作即可直接参与营销并获取收益;</li>
<li>贴心的广告策划:周到的广告位及广告形式策划使站长能尽可能多地获取收益,每一种广告产品随站长意愿随时开启随时关闭;</li>
<li>优势的广告产品:PHPWind精心挑选合作伙伴及广告产品,为PHPWind一站式营销用户争取到更多额外优惠;</li>
<li>便捷的支付政策:所有产品都采取及人民币月结的结算方式并在平台上可以清晰查看所有产品类型收益。</li>
</ol>
<p align="left"> 社区营销计划的意义在于”利用 PHPWind 平台把传统营销概念与论坛强大互动性相结合,充分挖掘论坛潜在价值,解决网站经济来源问题,为站长解除后顾之忧。 </p>
<p> PHPWind一站式营销体系。从建站到挣钱,PHPWind永远是您最真诚的伙伴!</p>
</td></tr></table>
<br />
<!--
EOT;
}elseif($action=='key'){print <<<EOT
-->
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr><td height="25" colspan=2>您网站的通用密钥</td>
</tr>
<tr><td bgcolor="#ffffff" colspan=2 style="line-height:150%">
<p align="left"><strong>什么是通用密钥?很重要!</strong><br />
通用密钥是系统自动为每个网站生成的通用营销系统密钥(包括一对密钥和一个唯一识别码),用来做为您网站的唯一标识;“通用密钥”将用于部分营销模块中;注册PHPWind社区营销帐号时需用到,请保管好您的通用密钥,以防被他人利用。 </p>
</td></tr>
<tr>
<td width="30%" height="33" bgcolor="#ffffff">密钥一</td>
<td height="33" bgcolor="#ffffff">
<span style="float:right;margin-right:10em">
<input type="button" value="复制代码" onClick="CopyCode(document.getElementById('code'));" class="inputbut"></span>
$cfg_siteid <input type="hidden" id="code" value="$cfg_siteid">
</td>
</tr>
<tr>
<td height="33" bgcolor="#ffffff">密钥二</td>
<td height="33" bgcolor="#ffffff">
<span style="float:right;margin-right:10em">
<input type="button" value="复制代码" onClick="CopyCode(document.getElementById('code1'));" class="inputbut"></span>
$cfg_siteownerid <input type="hidden" id="code1" value="$cfg_siteownerid">
</td>
</tr>
<tr>
<td height="33" bgcolor="#ffffff">唯一识别码</td>
<td height="33" bgcolor="#ffffff">
<span style="float:right;margin-right:10em">
<input type="button" value="复制代码" onClick="CopyCode(document.getElementById('code2'));" class="inputbut"></span>
$cfg_sitehash <input type="hidden" id="code2" value="$cfg_sitehash">
</td>
</tr>
</table>
<script language="JavaScript">
function CopyCode(obj){
obj.select();
var js=obj.createTextRange();
js.execCommand("Copy");
alert("代码已复制到剪贴板");
}
</script>
<!--
EOT;
}print <<<EOT
-->
</body>
</html>
<!--
EOT;
?>--> | zyyhong | trunk/jiaju001/news/lic/templets/code_main.htm | HTML | asf20 | 8,376 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>更改专题</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language='javascript' src='main.js'></script>
<script language="javascript">
<!--
function SelectTemplets(fname)
{
var posLeft = window.event.clientY-200;
var posTop = window.event.clientX-300;
window.open("../include/dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
function SelectArcList(fname)
{
var posLeft = 10;
var posTop = 10;
window.open("content_select_list.php?f="+fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left="+posLeft+", top="+posTop);
}
function checkSubmit()
{
if(document.form1.title.value==""){
alert("专题名称不能为空!");
return false;
}
if(document.form1.typeid.value==0){
alert("请选择档案的主类别!");
return false;
}
}
-->
</script>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<body topmargin="8">
<form name="form1" action="action/spec_edit_action.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="ID" value="<?php echo $arcRow['ID']?>">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="arcrank" value="<?php echo $arcRow['arcrank']?>">
<input type="hidden" name="source" value="本站">
<input type="hidden" name="typeid2" value="0">
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td height="30"> <a href="content_s_list.php"><strong><u>●专题列表</u></strong></a>>>修改专题</td>
<td width="10%"> <a href="makehtml_spec.php">[<u>更新HTML</u>]</a></td>
<td width="1%"> </td>
</tr>
</table>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" class="htable">
<tr>
<td colspan="2" bgcolor="#EDF9D5"><table width="168" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" height="28" align="center" bgcolor="#FFFFFF"> 常规参数 </td>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onclick="ShowItem2()"><u>专题文档</u></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="border-bottom:1px solid #CCCCCC;display:none">
<tr>
<td colspan="2" bgcolor="#EDF9D5"><table width="168" height="28" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onclick="ShowItem1()"><u>常规参数</u></a> </td>
<td width="84" align="center" bgcolor="#FFFFFF">专题文档</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset">
<tr>
<td width="400%" height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">专题名称:</td>
<td width="224"><input name="title" type="text" id="title" style="width:200px" value="<?php echo $arcRow['title']?>" size="40" /></td>
<td width="73">附加参数:</td>
<td><input name="iscommend" type="checkbox" id="iscommend" value="11" <?php if($arcRow["iscommend"]>10) echo " checked";?> />
推荐
<input name="isbold" type="checkbox" id="isbold" value="5" <?php if($arcRow["iscommend"]>10) echo " checked";?> />
加粗 </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">小标题:</td>
<td width="224"><input name="shorttitle" type="text" id="shorttitle" style="width:200px" value="<?php echo $arcRow["shorttitle"]?>" size="40" /></td>
<td width="73">自定属性:</td>
<td><select name='arcatt' style='width:150px'>
<option value='0'>普通文档</option>
<?php
$dsql->SetQuery("Select * From #@__arcatt order by att asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if($arcRow["arcatt"]==$trow->att) echo "<option value='{$trow->att}' selected>{$trow->attname}</option>";
else echo "<option value='{$trow->att}'>{$trow->attname}</option>";
}
?>
</select>
</td>
</tr>
</table></td>
</tr>
<tr id="pictable">
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> Tag标签:</td>
<td>
<input name="oldtag" type="hidden" id="oldtag" value="<?php echo $tags; ?>" />
<input name="tag" type="text" id="tag" style="width:300px" value="<?php echo $tags; ?>" />
(用空格或','分开)
</td>
</tr>
</table></td>
</tr>
<tr id="pictable">
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="81"> 缩 略 图:<br/>
<input type='checkbox' class='np' name='ddisremote' value='1' />
远程 </td>
<td width="472"><input name="picname" type="text" id="picname" style="width:250px" value="<?php echo $arcRow["litpic"]?>" />
<input type="button" name="Submit" value="浏览..." style="width:60px" onclick="SelectImage('form1.picname','');" class="inputbut" /> </td>
<td width="238" align="center"><img src="<?php if($arcRow["litpic"]!="") echo $arcRow["litpic"]; else echo "img/pview.gif";?>" width="150" height="100" id="picview" name="picview" /> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="33">专题模板:</td>
<td height="33">
<input name="templet" type="text" id="templet" size="30" value="<?php echo $arcRow["templet"]?>" style="width:250px" />
<input type="button" name="set3" value="浏览..." style="width:60px" onclick="SelectTemplets('form1.templet');" class="inputbut" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">主分类:</td>
<td>
<?php
$seltypeids = $dsql->GetOne("Select ID,typename From #@__arctype where ID='".$arcRow["typeid"]."' ");
if(is_array($seltypeids)){
echo GetTypeidSel('form1','typeid','selbt1',0,$seltypeids['ID'],$seltypeids['typename']);
}
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">责任编辑:</td>
<td width="224"><input name="writer" type="text" id="writer" value="<?php echo $arcRow["writer"]?>" /> </td>
<td width="99">发布选项:</td>
<td width="387"><input name="ishtml" type="radio" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked";?> />
生成HTML
<input type="radio" name="ishtml" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?> />
仅动态浏览 </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">内容排序:</td>
<td width="224"><select name="sortup" id="sortup" style="width:150px">
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["senddate"]);
echo "<option value='0'>正常排序</option>\r\n";
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select> </td>
<td width="99">标题颜色:</td>
<td width="163"><input name="color" type="text" id="color" style="width:120px" value="<?php echo $arcRow["color"]?>" /> </td>
<td width="224"><input name="modcolor" type="button" id="modcolor" value="选取" onclick="ShowColor()" class="inputbut" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="78">专题说明:</td>
<td><textarea name="description" rows="4" id="textarea" style="width:350px"><?php echo $arcRow["description"]?></textarea> </td>
</tr>
<tr>
<td width="90" height="51">关键字:</td>
<td><input name="keywords" id="keywords" style="width:250px" value="<?php echo $arcRow["keywords"]?>" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">创建时间:</td>
<td><?php
$addtime = GetDateTimeMk($arcRow["senddate"]);
echo "$addtime (标准排序和生成HTML名称的依据时间) <input type='hidden' name='senddate' value='".$arcRow["senddate"]."'>";
?> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">发布时间:</td>
<td>
<?php
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding:0px">
<?php
PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');
?>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" style="display:none" id="adset">
<tr>
<td height="28" bgcolor="#F1F5F2" class="bline2"><strong>专题节点列表:</strong> (文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章) <br/>
关于单条记录模板里的[field:fieldname /]标记的使用,请参考关于系统帮助关于 arclist 标记的说明。</td>
</tr>
<tr>
<td ><?php
$speclisttmp = GetSysTemplets("spec_arclist.htm");
$i = 1;
$dtp = new DedeTagParse();
$dtp->LoadSource($addRow["note"]);
if(is_array($dtp->CTags)){
foreach($dtp->CTags as $tagid=>$ctag)
{
if($ctag->GetName()!="specnote") continue;
$notename = $ctag->GetAtt('name');
$col = $ctag->GetAtt('col');
$idlist = $ctag->GetAtt('idlist');
$imgwidth = $ctag->GetAtt('imgwidth');
$imgheight = $ctag->GetAtt('imgheight');
$titlelen = $ctag->GetAtt('titlelen');
$infolen = $ctag->GetAtt('infolen');
$temp = trim($ctag->GetInnerText());
$noteid = $ctag->GetAtt('noteid');
if(empty($noteid)) $noteid = $i;
$isauto = $ctag->GetAtt('isauto');
if(empty($isauto)) $isauto = 0;
$keywords = $ctag->GetAtt('keywords');
$typeid = $ctag->GetAtt('typeid');
if(empty($typeid)) $typeid = 0;
$rownum = $ctag->GetAtt('rownum');
if(empty($rownum)) $rownum = 40;
?>
<table border="0" cellpadding="0" cellspacing="0" width="800">
<tr bgcolor="#EEF8E0">
<td width="171">节点 <?php echo $i?> 名称:</td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="notename<?php echo $i?>" type="text" id="notename<?php echo $i?>" style="width:300px" value="<?php echo $notename?>" />
</td>
<td width="90" align="center">节点标识:</td>
<td><input name="noteid<?php echo $i?>" type="text" id="noteid<?php echo $i?>" style="width:100px" value="<?php echo $noteid?>" /></td>
</tr>
</table></td>
</tr>
<tr>
<td width="171">节点文章列表:</td>
<td><textarea name="arcid<?php echo $i?>" cols="40" rows="3" id="arcid<?php echo $i?>" ><?php echo $idlist?></textarea>
<input name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" value="选择节点文章" style="width:100px" onclick="SelectArcList('form1.arcid<?php echo $i?>');" class="inputbut" />
</td>
</tr>
<tr>
<td width="171">文档来源:</td>
<td><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" <?php if($isauto==0) echo " checked";?> />
按文章列表
<input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" <?php if($isauto==1) echo " checked";?> />
自动获取文档
关键字:
<input name="keywords<?php echo $i?>" type="text" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" size="16">
(逗号分开)
栏目ID:
<input name="typeid<?php echo $i?>" type="text" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" size="4">
</td>
</tr>
<tr>
<td width="171" height="51" valign="top">节点布局:<br/>
</td>
<td><br/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>列数:
<input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" value="<?php echo $col?>" size="3" />
图片高:
<input name="imgheight<?php echo $i?>" type="text" id="imgheight<?php echo $i?>" value="<?php echo $imgwidth?>" size="3" />
图片宽:
<input name="imgwidth<?php echo $i?>" type="text" id="imgwidth<?php echo $i?>" value="<?php echo $imgheight?>" size="3" />
标题长:
<input name="titlelen<?php echo $i?>" type="text" id="titlelen<?php echo $i?>" value="<?php echo $titlelen?>" size="3" />
简介长:
<input name="infolen<?php echo $i?>" type="text" id="infolen<?php echo $i?>" value="<?php echo $infolen?>" size="3" />
文档数:
<input name="rownum<?php echo $i?>" type="text" id="rownum<?php echo $i?>" value="<?php echo $rownum?>" size="3" />
<br />
单条记录的模板:</td>
</tr>
<tr>
<td><textarea name="listtmp<?php echo $i?>" cols="40" rows="3" id="listtmp<?php echo $i?>" ><?php echo $temp?></textarea></td>
</tr>
</table></td>
</tr>
<?php
$i++;
}}
$dtp->Clear();
for($i;$i<=$cfg_specnote;$i++)
{
?>
<tr bgcolor="#EEF8E0">
<td width="171">节点 <?php echo $i?> 名称:</td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="notename<?php echo $i?>" type="text" id="notename<?php echo $i?>" style="width:300px" />
</td>
<td width="90" align="center">节点标识:</td>
<td><input name="noteid<?php echo $i?>" type="text" id="noteid<?php echo $i?>" style="width:100px" /></td>
</tr>
</table></td>
</tr>
<tr>
<td width="171">节点文章列表:</td>
<td><textarea name="arcid<?php echo $i?>" cols="40" rows="3" id="arcid<?php echo $i?>" ></textarea>
<input name="selarc<?php echo $i?>" type="button" id="selarc<?php echo $i?>2" value="选择节点文章" style="width:100px" onclick="SelectArcList('form1.arcid<?php echo $i?>');" class="inputbut" />
</td>
</tr>
<tr>
<td width="171">文档来源:</td>
<td><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="0" checked="checked" />
按文章列表
<input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" />
自动获取文档
关键字:
<input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16" />
(空格分开)
栏目ID:
<input name="typeid<?php echo $i?>" type="text" id="typeid<?php echo $i?>" value="0" size="4" />
</td>
</tr>
<tr>
<td width="171" height="51" rowspan="2" valign="top">节点布局:<br/>
</td>
<td>列数:
<input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" value="1" size="3" />
图片高:
<input name="imgheight<?php echo $i?>" type="text" id="imgheight<?php echo $i?>" value="90" size="3" />
图片宽:
<input name="imgwidth<?php echo $i?>" type="text" id="imgwidth<?php echo $i?>" value="120" size="3" />
标题长:
<input name="titlelen<?php echo $i?>" type="text" id="titlelen<?php echo $i?>" value="60" size="3" />
简介长:
<input name="infolen<?php echo $i?>" type="text" id="infolen<?php echo $i?>" value="160" size="3" />
文档数:
<input name="rownum<?php echo $i?>" type="text" id="rownum<?php echo $i?>" value="40" size="3" />
</td>
</tr>
<tr>
<td>单条记录的模板:<br/>
<textarea name="listtmp<?php echo $i?>" cols="40" rows="3" id="listtmp<?php echo $i?>" ><?php echo $speclisttmp?></textarea></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td height="28" bgcolor="#F1F5F2" class="bline2"> </td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="56"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="17%"> </td>
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="115" height="35"><input name="imageField" type="submit" class="inputbut" value="确定" /></td>
<td width="99" height="35"><input name="button" type="reset" class="inputbut" id="button" value="重置"/></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/spec_edit.htm | HTML | asf20 | 23,067 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>随机模板防采集插件</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language="javascript">
var channelArray = new Array();
<?php
$i = 0;
foreach($channelArray as $k=>$arr){
echo "channelArray[$k] = \"{$arr['nid']}\";\r\n";
}
?>
function SelectTemplets(fname){
var posLeft = window.event.clientY-200;
var posTop = window.event.clientX-300;
window.open("../include/dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
function ParTemplet(obj)
{
var sevvalue = channelArray[obj.value];
var temparticle = document.getElementsByName('temparticle');
temparticle[0].value = "{style}/article_"+sevvalue+"_{rand}.htm";
}
function CheckPathSet()
{
var surl = document.getElementById("siteurl");
var sreid = document.getElementById("reID");
var mysel = document.getElementById("truepath3");
if(surl.value!=""){
if(sreid.value=="0" || sreid.value==""){
mysel.checked = true;
}
}
}
</script>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">辅助插件</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<form action="rnd_templets_main.php" name="form2" target="stafrm">
<input type="hidden" name="dopost" value="yes">
<input type="hidden" name="reset" value="yes">
</form>
<form action="rnd_templets_main.php" name="form1" target="stafrm">
<input type="hidden" name="dopost" value="yes">
<tr>
<td height="20" bgcolor="#EDF9D5"> <table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" height="18"><strong> 随机模板防采集插件:</strong></td>
<td width="70%" align="right"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="33" bgcolor="#FFFFFF"> 使用了随机模板防采集插件后,原来栏目规则定义的模板规则将无效,本插件仅适用于处理已发布的文档的模板。</td>
</tr>
<tr>
<td height="48" bgcolor="#FFFFFF"><table width="90%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="17%">频道模型: </td>
<td width="83%"><select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)">
<?php
foreach($channelArray as $k=>$arr)
{
if($k==1) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n";
else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n";
}
?>
</select> </td>
</tr>
<tr>
<td height="35" valign="middle">模板名称:</td>
<td valign="middle">
<input name="temparticle" type="text" style="width:300px" value="{style}/article_article_{rand}.htm" size="30">
<input type="button" name="set4" value="浏览..." style="width:60px" onClick="SelectTemplets('form1.temparticle');" class="inputbut">
</td>
</tr>
<tr>
<td> </td>
<td>如果你手工指定模板,那么你要在上面用{rand}变量代替随机序号</td>
</tr>
<tr>
<td>随机序号:</td>
<td><input name="rndstart" type="text" id="rndstart" value="1" size="8">
到
<input name="rndend" type="text" id="rndend" value="5" size="8"></td>
</tr>
<tr>
<td>自动更新:</td>
<td>
<input name="autotype" type="radio" value="empty" checked>
只更新没指定模板的文档
<input type="radio" name="autotype" value="all">
更新全部
<input type="radio" name="autotype" value="hand">
手工指定ID</td>
</tr>
<tr>
<td>起始ID:</td>
<td>
<input name="startid" type="text" id="startid" size="8">
结束ID:
<input name="endid" type="text" id="endid" size="8"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="31" bgcolor="#F8FBFB" align="center">
<input type="submit" name="Submit" value="开始随机更换模板" class="inputbut"/>
<input type="button" name="Submit2" value="恢复默认模板" class="inputbut" onClick="document.form2.submit()"/>
</td>
</tr>
</form>
<tr >
<td height="20" bgcolor="#EDF9D5"> <table width="100%">
<tr>
<td width="74%"><strong> 结果:</strong></td>
<td width="26%" align="right"> <script language='javascript'>
function ResizeDiv(obj,ty)
{
if(ty=="+") document.all[obj].style.pixelHeight += 50;
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
}
</script>
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td id="mtd">
<div id='mdv' style='width:100%;height:100;'>
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
</div>
<script language="JavaScript">
document.all.mdv.style.pixelHeight = screen.height - 420;
</script>
</td>
</tr>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/rnd_templets_main.htm | HTML | asf20 | 6,088 |
1227667056
| zyyhong | trunk/jiaju001/news/lic/templets/co_export_rule.htm.cache.t | Perl | asf20 | 11 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>关键字维护</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body >
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td height="20" bgcolor="#EDF9D5"> <table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" height="18"><strong>关键字维护:</strong></td>
<td width="70%" align="right"><input name="kw" type="button" id="kw" value="返回关键字管理页" onClick="location='article_keywords_main.php';" class="inputbut"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="48" bgcolor="#FFFFFF"> 本向导帮助自动分析你系统内的关键字,并统计关键字的数量,对其进行排序,你可以清理掉错误的关键字或无意义的关键字,以提高文档关连和搜索的准确性,本分析器是直接在内存中对关键字进行分析排序后加入到数据库的,因此本操作比较占用内存,如果你的文档数量很大并且使用的又是虚拟主机,可能无法完成本操作。<br/>
本程序只分析文章频道的关键字数据,其它频道或自定义频道请自行手工指定内容的关系字。<br/>
如果你的文章是采集回来的,请先用“自动获取关键字”的功能对未有关键字的文章进行分词索引,然后再检测关键字。</td>
</tr>
<tr>
<td height="31" bgcolor="#F8FBFB" align="center">
[<a href="article_keywords_analyse.php" target="stafrm"><u>检测已有的关键字</u></a>]
[<a href="article_keywords_fetch.php"><u>自动获取关键字</u></a>]</td>
</tr>
<tr bgcolor="#E5F9FF">
<td height="20" bgcolor="#EDF9D5"> <table width="100%">
<tr>
<td width="74%"><strong>结果:</strong></td>
<td width="26%" align="right"> <script language='javascript'>
function ResizeDiv(obj,ty)
{
if(ty=="+") document.all[obj].style.pixelHeight += 50;
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
}
</script>
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td id="mtd"> <div id='mdv' style='width:100%;height:100;'>
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
</div>
<script language="JavaScript">
document.all.mdv.style.pixelHeight = screen.height - 360;
</script> </td>
</tr>
</table>
</body>
</html>
| zyyhong | trunk/jiaju001/news/lic/templets/article_keywords_make.htm | HTML | asf20 | 3,116 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改频道</title>
<script language="javascript" src="main.js"></script>
<script language="javascript">
<!--
function SelectGuide(fname)
{
var posLeft = window.event.clientY-200;
var posTop = window.event.clientX-200;
window.open("mychannel_field_make.php?f="+fname, "popUpImagesWin", "scrollbars=yes,resizable=no,statebar=no,width=600,height=420,left="+posLeft+", top="+posTop);
}
function CheckSubmit()
{
if(document.form1.typename.value=='')
{
alert("频道名称不能为空!");
return false;
}
return true;
}
//删除
function DelNote(gourl){
if(!window.confirm("你确认要删除这条记录么!")){ return false; }
location.href=gourl;
}
-->
</script>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
td{ padding:2px; padding-left:6px; line-height:150%; }
.STYLE2 {color: #666666; display:none; }
-->
</style>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">频道管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<form name="form1" action="mychannel_edit.php" method="post" onSubmit="return CheckSubmit();">
<input type='hidden' name='ID' value='<?php echo $ID?>'>
<input type='hidden' name='dopost' value='save'>
<input type='hidden' name='issystem' value='<?php echo $row['issystem']?>'>
<tr bgcolor="#E2F5BC">
<td height="28" colspan="2" bgcolor="#EDF9D5">
<b> <a href="mychannel_main.php"><u>频道模型管理</u></a> > 修改频道模型:</b>
(修改表名不会创建新表,如果你不懂手工处理这些表,请不要更改) </td>
</tr>
<tr>
<td width="35%" height="28" align="left" bgcolor="#FFFFFF">频道ID:<br />
<span class="STYLE2" id='help1'> 数字,创建后不可更改,并具有唯一性。</span> </td>
<td width="65%" bgcolor="#FFFFFF">
<?php echo $row['ID']?>
* <img src="img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="ShowHide2('help1')" /></td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#F8FCEF">频道名称:<br />
<span class="STYLE2" id="help3"> 频道的中文名称,在后台管理,前台发布等均使用此名字。</span></td>
<td bgcolor="#F8FCEF">
<input name="typename" type="text" id="typename" value="<?php echo $row['typename']?>" style="width:180px">
*<img src="img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="ShowHide2('help3')" />
</td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF">名字标识:<br />
<span class="STYLE2" id="help2"> 与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,频道默认文档模板是 “default/article_名字标识.htm”,列表模板、封面模板类推。 </span></td>
<td bgcolor="#FFFFFF">
<input name="nid" type="text" id="nid" value="<?php echo $row['nid']?>" style="width:180px">
*<img src="img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="ShowHide2('help2')" />
<input name="ispy" type="checkbox" id="ispy" value="1" class="np" checked />用频道名称的拼音
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#F8FCEF">主索引表:<br />
<span class="STYLE2" id="help4"> 系统会直接复制dede_archives的结构作为索引表,表名是允许相同的,当然使用不同的表分流数据可以提高负载性能。</span></td>
<td bgcolor="#F8FCEF">
<input name="maintable" type="text" id="maintable" value="<?php if($row['maintable']=='') echo "{$cfg_dbprefix}archives"; else echo $row['maintable']; ?>" style="width:180px">
*<img src="img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="ShowHide2('help4')" />
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#FFFFFF">附加表:<br />
<span class="STYLE2" id="help5"> 必须由英文、数字、下划线组成,用于保存不包含在索引表中的个性化数据。</span></td>
<td bgcolor="#FFFFFF">
<input name="addtable" type="text" id="addtable" style="width:180px" value="<?php echo $row['addtable']; ?>">
*<img src="img/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:hand" onclick="ShowHide2('help5')" />
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#F8FCEF">模型字段配置:<br />
信息索引类字段系统已经加入,<br />
你只需要增加其它个性化字段即可。</td>
<td bgcolor="#F8FCEF">
<input name="fset" type="button" id="fset" value="添加新字段" onClick="location.href='mychannel_field_add.php?ID=<?php echo $ID; ?>'" class="inputbut" style="margin-top:5px"/></td>
</tr>
<tr>
<td colspan='2' bgcolor="#FFFFFF" style="padding:6px">
<table width="100%" border="0" cellpadding="1" cellspacing="1" align="center" style="background:#ABC094;">
<tr align="center" bgcolor="#EEFAA9" height="24">
<td width="28%">表单提示文字</td>
<td width="18%">数据字段名</td>
<td width="20%">数据类型</td>
<td width="18%">表单类型</td>
<td>维护</td>
</tr>
<?php
$ds = file(dirname(__FILE__)."/../inc/fieldtype.txt");
foreach($ds as $d){
$dds = explode(',',trim($d));
$fieldtypes[$dds[0]] = $dds[1];
}
$fieldset = $row['fieldset'];
$dtp = new DedeTagParse();
$dtp->SetNameSpace("field","<",">");
$dtp->LoadSource($fieldset);
if(is_array($dtp->CTags)){
foreach($dtp->CTags as $ctag)
{
?> <tr align="center" bgcolor="#FFFFFF" height="24">
<td>
<?php
$itname = $ctag->GetAtt('itemname');
if($itname=='') echo "没指定";
else echo $itname;
?>
</td>
<td>
<?php echo $ctag->GetTagName()?>
</td>
<td>
<?php
$ft = $ctag->GetAtt('type');
if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft];
else echo "系统专用类型";
?>
</td>
<td>
<?php
$ft = $ctag->GetAtt('autofield');
if($ft==''||$ft==0) echo "固化表单";
else echo "自动表单";
?>
</td>
<td>
<a href='mychannel_field_edit.php?ID=<?php echo $ID?>&fname=<?php echo $ctag->GetTagName()?>&issystem=<?php echo $row['issystem']; ?>'>[修改]</a>
<?php if($row['issystem']!=1){ ?>
| <a href='#' onClick='javascript:DelNote("mychannel_field_edit.php?ID=<?php echo $ID?>&fname=<?php echo $ctag->GetTagName()?>&action=delete");'>[移除]</a>
<?php } ?>
</td>
</tr>
<?php
}}
?>
</table>
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#F8FCEF">模型性质:</td>
<td bgcolor="#F8FCEF">
<input name="issystem" type="radio" class="np" value="0"<?php if($row['issystem']=='0') echo " checked"; ?> />
自动模型
<input name="issystem" type="radio" class="np" value="1"<?php if($row['issystem']=='1') echo " checked"; ?> />
系统模型
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#FFFFFF">是否支持会员投稿:</td>
<td bgcolor="#FFFFFF">
<input name="issend" type="radio" class="np" value="0"<?php if($row['issend']=='0') echo " checked"; ?> />
不支持
<input name="issend" type="radio" class="np" value="1"<?php if($row['issend']=='1') echo " checked"; ?> />
支持
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#F8FCEF">投稿会员组:</td>
<td bgcolor="#F8FCEF">
<input name="sendmember" type="radio" class="np" value="0"<?php if($row['sendmember']=='0') echo " checked"; ?> />
个人会员
<input name="sendmember" type="radio" class="np" value="1"<?php if($row['sendmember']=='1') echo " checked"; ?> />
企业会员
<input name="sendmember" type="radio" class="np" value="2"<?php if($row['sendmember']=='2') echo " checked"; ?> />
所有会员
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#FFFFFF">会员许可投稿级别:</td>
<td bgcolor="#FFFFFF">
<select name="sendrank" id="sendrank" style="width:120px">
<?php
$dsql->SetQuery("Select * from #@__arcrank where rank>=10");
$dsql->Execute();
while($row2 = $dsql->GetObject())
{
if($row2->rank==$row['sendrank']) echo " <option value='".$row2->rank."' selected>".$row2->membername."</option>\r\n";
else echo " <option value='".$row2->rank."'>".$row2->membername."</option>\r\n";
}
?>
</select>
</td>
</tr>
<tr>
<td height="28" align="left" bgcolor="#F8FCEF">会员稿件默认状态:</td>
<td bgcolor="#F8FCEF">
<input name="arcsta" type="radio" value="-1"<?php if($row['arcsta']==-1) echo " checked";?>>
未审核
<input name="arcsta" type="radio" value="0"<?php if($row['arcsta']==0) echo " checked";?>>
已审核(自动生成HTML)
<input name="arcsta" type="radio" value="1"<?php if($row['arcsta']==1) echo " checked";?>>
已审核(仅使用动态文档)
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" height="28">
◎以下的选项,如果你没有自己重新开发这个模型的发布程序,保留默认即可,系统会自动生成发布表单。
</td>
</tr>
<tr>
<td width="35%" height="28" align="left" bgcolor="#FFFFFF">发布程序选项:</td>
<td width="65%" bgcolor="#FFFFFF">
<input type='checkbox' name='isdefault' value='1' class='np'<?php if($row['isdefault']==1) echo ' checked'; ?> />
设置为内容发布默认频道
</td>
</tr>
<tr>
<td align="left" bgcolor="#F8FCEF">档案发布程序</td>
<td bgcolor="#F8FCEF"><input name="addcon" type="text" id="addcon" value="<?php echo $row['addcon']?>" size="35"></td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF">档案修改程序</td>
<td bgcolor="#FFFFFF"><input name="editcon" type="text" id="editcon" value="<?php echo $row['editcon']?>" size="35"></td>
</tr>
<tr>
<td align="left" bgcolor="#F8FCEF">档案管理程序</td>
<td bgcolor="#F8FCEF"><input name="mancon" type="text" id="mancon" value="<?php echo $row['mancon']?>" size="35"></td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF">会员发布程序</td>
<td bgcolor="#FFFFFF"><input name="useraddcon" type="text" id="useraddcon" value="<?php echo $row['useraddcon']?>" size="35"></td>
</tr>
<tr>
<td align="left" bgcolor="#F8FCEF">会员修改程序</td>
<td bgcolor="#F8FCEF"><input name="usereditcon" type="text" id="usereditcon" value="<?php echo $row['usereditcon']?>" size="35"></td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF">会员管理程序</td>
<td bgcolor="#FFFFFF"><input name="usermancon" type="text" id="usermancon" value="<?php echo $row['usermancon']?>" size="35"></td>
</tr>
<tr bgcolor="#F9FDF0">
<td height="28" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="26%" height="45"> </td>
<td width="15%"><input type="submit" name="button" id="button" value="确定" class="inputbut"/></td>
<td width="59%"><input name="按钮" type="button" class="inputbut" id="button2" onclick="location='mychannel_main.php';" value="返回"/></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/mychannel_edit.htm | HTML | asf20 | 12,432 |
{dede:page pagesize="25"/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>数据规则模型管理</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
td{ padding-left:6px; }
-->
</style>
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">采集管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td height="20" colspan="5" bgcolor="#EDF9D5">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="18"><strong>数据规则模型管理:</strong></td>
<td width="80%" align="right" style="padding-top:6px">
<input type="button" name="ba" value="添加新规则" onClick="location='co_export_rule_add.php';" class="inputbut">
<input type="button" name="banew" value="导入文本配置" onClick="location='co_export_rule_add.php?action=hand';" class="inputbut">
</td>
</tr>
</table></td>
</tr>
<tr align="center" bgcolor="#F8FBFB">
<td width="8%">ID</td>
<td width="35%">导入规则名称</td>
<td width="12%">库类型</td>
<td width="18%">建立时间</td>
<td width="27%">管理</td>
</tr>
<form name="form1">
{dede:datalist}
<tr bgcolor="#FFFFFF" align="center" onMouseMove="javascript:this.bgColor='#EFEFEF';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
<td>[field:aid/]</td>
<td>[field:rulename/]</td>
<td>[field:etype/]</td>
<td>[field:dtime function='GetDateMk(@me)'/]</td>
<td style="padding-top:6px">
<a href="co_export_rule_edit.php?aid=[field:aid/]">修改</a> |
<a href="co_export_rule_edit.php?aid=[field:aid/]&action=export">导出配置</a> |
<a href="co_export_rule_edit.php?aid=[field:aid/]&action=delete">删除</a>
</td>
</tr>
{/dede:datalist}
</form>
<tr>
<td height="24" colspan="5" bgcolor="#FCFDF7" align="center">
{dede:pagelist size='5' /}
</td>
</tr>
</table>
</body>
</html>
| zyyhong | trunk/jiaju001/news/lic/templets/co_export_rule.htm | HTML | asf20 | 2,491 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>更改文章</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>
<script language="javascript">
<!--
function SelectTemplets(fname){
var posLeft = window.event.clientY-200;
var posTop = window.event.clientX-300;
window.open("dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
-->
</script>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<body topmargin="8">
<div class="bodytitle" style="margin-bottom:8px;">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">修改文章</div>
<div style="float:right;padding:4px 15px 0 0">
<strong>
<a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文章列表</u></a>
<a href="catalog_main.php"><u>栏目管理</u></a>
</strong>
</div>
</div>
<form name="form1" action="action/article_eidt_action.php" enctype="multipart/form-data" method="post" onSubmit="return CS_ArchivesEdit();">
<input type="hidden" name="channelid" value="<?php echo $arcRow['channel'] ?>">
<input type="hidden" name="ID" value="<?php echo $aid?>">
<input type="hidden" name="edadminid" value="<?php echo $arcRow['adminID']; ?>">
<input type="hidden" name="memberid" value="<?php echo $arcRow['memberID']; ?>">
<input type="hidden" name="typeidold" value="<?php echo $arcRow['typeid']; ?>">
<input type="hidden" name="typeid2old" value="<?php echo $arcRow['typeid2']; ?>">
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" class="htable">
<tr>
<td colspan="2" bgcolor="#E2F5BC">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" height="24" align="center" bgcolor="#FFFFFF"> 常规内容 </td>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onClick="ShowItem2()"><u>其它参数</u></a></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
<tr>
<td colspan="2" bgcolor="#E2F5BC">
<table height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onClick="ShowItem1()"><u>常规内容</u></a> </td>
<td width="84" align="center" bgcolor="#FFFFFF">其它参数 </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset">
<tr>
<td width="400%" height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 文章标题:</td>
<td width="250"><input name="title" type="text" id="title" style="width:230px" value="<?php echo htmlspecialchars($arcRow['title']);?>" size="40" />
</td>
<td width="90">附加参数:</td>
<td><input name="iscommend" type="checkbox" id="iscommend" class="np" value="11" <?php if($arcRow["iscommend"]>10) echo " checked";?> />
推荐
<input name="isbold" type="checkbox" id="isbold" class="np" value="5" <?php if($arcRow["iscommend"]==5||$arcRow["iscommend"]==16) echo " checked";?> />
加粗
<input name="isjump" onclick="ShowUrlTrEdit()" type="checkbox" id="isjump" value="1" class="np"<?php echo $arcRow["redirecturl"]=="" ? "" : " checked";?> />
跳转网址 </td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" class="bline" id="redirecturltr" style="display:<?php echo $arcRow["redirecturl"]=="" ? "none" : "block";?>"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 跳转网址:</td>
<td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $arcRow["redirecturl"]?>" size="40" />
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> Tag标签:</td>
<td>
<input name="oldtag" type="hidden" id="oldtag" value="<?php echo $tags; ?>" />
<input name="tag" type="text" id="tag" style="width:300px" value="<?php echo $tags; ?>" />
(用空格或','分开)
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="24" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="33"> 文章来源:</td>
<td width="250" height="33"><input name="source" type="text" id="source" style="width:160px" value="<?php echo $arcRow["source"]?>" size="16" />
<input name="selsource" type="button" id="selsource" value="选择" class="inputbut" />
</td>
<td width="90" height="33">作 者:</td>
<td height="33"><input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow["writer"]?>" />
<input name="selwriter" type="button" id="selwriter" value="选择" class="inputbut" />
</td>
</tr>
</table>
<script language='JavaScript' type="text/javascript">InitPage();</script>
</td>
</tr>
<tr id="pictable">
<td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="81"> 缩 略 图:<br/>
<input type='checkbox' class='np' name='ddisremote' value='1' />
远程 </td>
<td width="340"><input name="picname" type="text" id="picname" style="width:220px" value="<?php echo $arcRow["litpic"]?>" />
<input type="button" name="Submit" value="浏览..." style="width:60px" onclick="SelectImage('form1.picname','');" class="inputbut" />
</td>
<td align="left"><img src="<?php if($arcRow["litpic"]!="") echo $arcRow["litpic"]; else echo "img/pview.gif";?>" width="150" height="100" id="picview" name="picview" /> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">主分类:</td>
<td width="400"><?php
$dsql = new DedeSql(false);
$seltypeids = $dsql->GetOne("Select ID,typename From #@__arctype where ID='".$arcRow["typeid"]."' ");
if(is_array($seltypeids)){
echo GetTypeidSel('form1','typeid','selbt1',$arcRow["channel"],$seltypeids['ID'],$seltypeids['typename']);
}
?>
</td>
<td> (只允许在白色选项的栏目中发布当前类型内容)</td>
</tr>
</table></td>
</tr>
<tr>
<td style="padding:0px">
<?php
PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');
?>
</td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" style="padding:0px">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" bgcolor="#EDF9D5">
<table width="168" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" bgcolor="#FFFFFF"> 文章内容</td>
<td width="84" align="center"> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" height="36" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 附加选项:</td>
<td>
<input name="remote" type="checkbox" id="remote" value="1" />
下载远程图片和资源
<input name="autolitpic" type="checkbox" id="autolitpic" value="1" />
提取第一个图片为缩略图
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<?php
GetEditor("body",$body,450);
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="adset" style="display:none">
<tr>
<td height="38" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 简略标题:</td>
<td width="250">
<input name="shorttitle" type="text" value="<?php echo $arcRow["shorttitle"]?>" id="shorttitle" style="width:150px" /> </td>
<td width="90">自定属性:</td>
<td><select name='arcatt' style='width:150px'>
<option value='0'>普通文档</option>
<?php
$dsql->SetQuery("Select * From #@__arcatt order by att asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
if($arcRow["arcatt"]==$trow->att) echo "<option value='{$trow->att}' selected>{$trow->attname}</option>";
else echo "<option value='{$trow->att}'>{$trow->attname}</option>";
}
?>
</select> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="38" bgcolor="#FFFFFF" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 副分类:</td>
<td width="400"><?php
$seltypeids = $dsql->GetOne("Select ID,typename From #@__arctype where ID='".$arcRow["typeid2"]."' ");
if(is_array($seltypeids)){
echo GetTypeidSel('form1','typeid2','selbt2',$arcRow["channel"],$seltypeids['ID'],$seltypeids['typename']);
}else{
echo GetTypeidSel('form1','typeid2','selbt2',$arcRow["channel"],0,'请选择...');
}
?></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="33"> 文章模板:</td>
<td height="33"><input name="templet" type="text" id="templet" value="<?php echo $arcRow["templet"]?>" size="30" />
<input type="button" name="set3" value="浏览..." style="width:60px" onclick="SelectTemplets('form1.templet');" class="inputbut" />
(如果模板为空,则使用文章所在栏目定义的模板) </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 文章排序:</td>
<td width="250"><select name="sortup" id="sortup" style="width:150px">
<?php
$subday = SubDay($arcRow["sortrank"],$arcRow["senddate"]);
echo "<option value='0'>正常排序</option>\r\n";
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n";
?>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select> </td>
<td width="90">标题颜色:</td>
<td width="159"><input name="color" type="text" id="color" style="width:120px" value="<?php echo $arcRow["color"]?>" /> </td>
<td><input name="modcolor" type="button" id="modcolor" value="选取" onclick="ShowColor()" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 阅读权限:</td>
<td width="250"><select name="arcrank" id="arcrank" style="width:150px">
<option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option>
<?php
$dsql->SetQuery("Select * from #@__arcrank ");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
}
?>
</select> </td>
<td width="90">发布选项:</td>
<td><input name="ishtml" type="radio" value="1"<?php if($arcRow["ismake"]!=-1) echo " checked";?> />
生成HTML
<input type="radio" name="ishtml" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?> />
仅动态浏览 </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 录入时间:</td>
<td>
<?php
$addtime = GetDateTimeMk($arcRow["senddate"]);
echo "$addtime (标准排序和生成HTML名称的依据时间) <input type='hidden' name='senddate' value='".$arcRow["senddate"]."'>";
?> </td>
</tr>
</table> </td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 发布时间:</td>
<td width="381"><?php
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
?> </td>
<td width="95" align="center">消费点数:</td>
<td width="234"><input name="money" type="text" id="money" value="<?php echo $arcRow["money"]?>" size="10" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="56" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 文章摘要:</td>
<td width="360"><textarea name="description" cols="40" rows="3" id="description" style="margin-right:10px;width:350px;height:55px"><?php echo $arcRow["description"]?></textarea></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="56" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 关 键 字:</td>
<td width="360"><textarea name="keywords" cols="40" rows="3" id="keywords" style="margin-right:10px;width:350px;height:45px"><?php echo $arcRow["keywords"]?></textarea></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="56" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 相关文档:</td>
<td width="360">
<textarea name="likeid" id="likeid" style="float:left;margin-right:10px;width:350px;height:45px"><?php echo $arcRow["likeid"]; ?></textarea>
</td>
<td>
<span style="padding-top:10px;maring:0px;">
把文档ID,用逗号“,”分开<br/>
<input name="lsel" type="button" id="lsel" class="inputbut" style="width:150px" onchange="" value="从已发布文档中选取..." onclick="SelectArcListA('form1.likeid');" />
</span>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="56"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="17%"> </td>
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="115" height="35"><input name="imageField" type="submit" class="inputbut" value="确定" /></td>
<td width="99" height="35"><input name="button" type="reset" class="inputbut" id="button" value="重置"/></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/article_edit.htm | HTML | asf20 | 19,515 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>图片浏览器</title>
<link href="base.css" rel="stylesheet" type="text/css">
<script language="javascript">
function getPic(str)
{
var ss = new Array(3);
ss = str.split("@");
window.opener.document.form1.imgsrc.value=ss[0];
window.opener.document.form1.imgwidth.value=ss[1];
window.opener.document.form1.imgheight.value=ss[2];
window.opener.document.form1.picview.src=ss[0];
window.opener=true;
window.close();
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form1">
<tr>
<td height="10" colspan="<?php echo $listSize?>"></td>
</tr>
<tr>
<td colspan="<?php echo $listSize?>">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="4%" align="center" bgcolor="#F9F9F7" height="24"><img src="img/file_dir.gif" width="16" height="16"></td>
<td width="55%" align="center" bgcolor="#F9F9F7"><input name="activepath" type="text" id="path" size="30" style="height:15pt" value="<?php echo $activepath?>"></td>
<td width="20%" bgcolor="#F9F9F7">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="6%"> </td>
<td width="44%"><input name="imageField" type="image" src="img/next.gif" width="52" height="20" border="0" style="border:0;height:20"></td>
<td width="50%"><a href="file_manage_main.php?activepath=<?php echo $activepath?>"><img src="img/file_view.gif" width="60" height="20" border="0"></a></td>
</tr>
</table></td>
<td width="22%" bgcolor="#F9F9F7">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="18%" align="right"><img src="img/file_topdir.gif" width="18" height="17"></td>
<td width="82%"><?php GetPrePath($activepath); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr><td height="4" colspan="<?php echo $listSize?>"></td></tr>
<?php ListPic($truePath,$activepath); ?>
</form>
</table>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/pic_view.htm | HTML | asf20 | 2,384 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>自动分页</title>
<script language='javascript' src='main.js'></script>
<script language='javascript' src='../include/dedeajax2.js'></script>
<script language='javascript'>
function ShowFields(){
var channel = $DE('channel').options[$DE('channel').selectedIndex].value;
var queryUrl = "pagination_fetch_action.php?channel="+channel+"&action=getfields";
var myajax = new DedeAjax($DE('fields'),true,true,'','x','...');
myajax.SendGet(queryUrl);
}
function CheckSubmit(){
if($DE('rpfield').value==""){
alert("你选择的操作为手工指定字段,但你并没指定!");
return false;
}
return true;
}
function pf(v){
$DE('rpfield').value = v;
}
</script>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">自动分页</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<form action="pagination_fetch_action.php" name="form1" method="post" target="stafrm" onSubmit="return CheckSubmit()">
<input type='hidden' name='action' value='fetch'>
<tr>
<td height="20" bgcolor="#EDF9D5"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30%">
<strong> 自动分页</strong> </td>
<td> </td>
</tr>
</table> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="15%" height="66"> 选择频道与自动分页字段:</td>
<td> <table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="tables">
<?php
$dsql = new DedeSql(false);
if(!$dsql->linkID){
echo "<font color='red'>连接数据库失败!</font><br>";
echo $qbutton;
exit();
}
$dsql->SetQuery("select ID,typename,addtable from #@__channeltype");
$dsql->Execute('t');
if($dsql->GetError()!=""){
echo "<font color='red'>找不到你所指定的数据库! $dbname</font><br>";
echo $qbutton;
}
echo "<select name='channel' id='channel' size='10' style='width:60%' onchange='ShowFields()'>\r\n";
while($row = $dsql->GetArray('t')){
if($row['ID'] == 1)
{
$select = 'selected';
}else{
$select = '';
}
echo "<option value='".$row['ID']."' $select>".$row['typename']."</option>\r\n";
}
echo "</select>\r\n";
$dsql->Close();
?> </td>
</tr>
<tr>
<td id='fields'>
<div style='border:1px solid #ababab;background-color:#FEFFF0;margin-top:6px;padding:3px;line-height:160%'>
表(dede_addonarticle)含有的字段:<br>
<a href="javascript:pf('aid')"><u>aid</u></a>
<a href="javascript:pf('typeid')"><u>typeid</u></a>
<a href="javascript:pf('body')"><u>body</u></a>
<input type='hidden' name='addtable' value='#@__addonarticle' />
</div>
</td>
</tr>
<tr>
<td height="28"> 分页字段:
<input name="rpfield" type="text" id="rpfield" value="body"> 分页大小<?php echo $cfg_arcautosp_size?>
K,<a href='sys_info.php'><u>修改系统参数</u></a>)</td>
</tr>
<tr>
<td height="28">
开始ID:
<input name="sid" type="text" id="sid3" size="8">
结束ID:
<input name="eid" type="text" id="eid" size="8">
</td></tr>
</table></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="31" bgcolor="#F8FBFB" align="center"><input type="submit" name="Submit" value="开始自动分页" class="inputbut"/></td>
</tr>
</form>
<tr bgcolor="#E5F9FF">
<td height="20" bgcolor="#EDF9D5"> <table width="100%">
<tr>
<td width="74%"><strong>结果:</strong></td>
<td width="26%" align="right"> <script language='javascript'>
function ResizeDiv(obj,ty)
{
if(ty=="+") document.all[obj].style.pixelHeight += 50;
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
}
</script>
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] </td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td id="mtd"> <div id='mdv' style='width:100%;height:100;'>
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
</div>
<script language="JavaScript">
document.all.mdv.style.pixelHeight = screen.height - 520;
</script> </td>
</tr>
</table>
</body>
</html>
| zyyhong | trunk/jiaju001/news/lic/templets/pagination_fetch.htm | HTML | asf20 | 5,447 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>增加软件集</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>
<script language="javascript">
<!--
function checkSubmit()
{
if(document.form1.title.value==""){
alert("软件名称不能为空!");
document.form1.title.focus();
return false;
}
if(document.form1.typeid.value==0){
alert("请选择档案的主类别!");
return false;
}
}
function MakeUpload()
{
var startNum = 2;
var upfield = document.getElementById("uploadfield");
var endNum = document.form1.picnum.value;
if(endNum>9) endNum = 9;
upfield.innerHTML = "";
for(startNum;startNum<=endNum;startNum++){
upfield.innerHTML += "软件地址"+startNum+":<input type='text' name='softurl"+startNum+"' style='width:280px' value='http://'> ";
upfield.innerHTML += " ";
upfield.innerHTML += "服务器名称:<input type='text' name='servermsg"+startNum+"' style='width:150'><br/>\r\n";
}
}
-->
</script>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<body topmargin="8">
<form name="form1" action="action/soft_add_action.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td height="30"> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>软件列表</u></a>>>发布新软件</td>
<td width="31%" align="right"> <a href="catalog_main.php">[<u>栏目管理</u>]</a>
[<a href="soft_config.php"><u>下载频道参数设定</u></a>]</td>
<td width="1%"> </td>
</tr>
</table>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#E2F5BC;">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" class="htable">
<tr>
<td colspan="2" bgcolor="#EDF9D5"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" height="28" align="center" bgcolor="#FFFFFF"> 常规参数 </td>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onclick="ShowItem2()"><u>软件内容</u></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="border-bottom:1px solid #CCCCCC;display:none">
<tr>
<td colspan="2" bgcolor="#EDF9D5"><table height="28" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" align="center" bgcolor="#006600"><a href="#" class="STYLE1" onclick="ShowItem1()"><u>常规参数</u></a> </td>
<td width="84" align="center" bgcolor="#FFFFFF">软件内容</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset">
<tr>
<td width="400%" height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 软件名称:</td>
<td width="250"><input name="title" type="text" id="title" style="width:230px" />
</td>
<td width="90">附加参数:</td>
<td><input name="iscommend" type="checkbox" id="iscommend" value="11" />
推荐
<input name="isbold" type="checkbox" id="isbold" value="5" />
加粗
<input name="isjump" type="checkbox" id="isjump" value="1" onclick="ShowUrlTr()" />
跳转网址 </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline" id="redirecturltr" style="display:none">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 跳转网址:</td>
<td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="28" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> Tag标签:</td>
<td>
<input name="tag" type="text" id="tag" style="width:300px" value="">
(用空格或','分开) </td>
</tr>
</table> </td>
</tr>
<tr id="pictable">
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="135" height="81"> 缩 略 图:<br/>
<input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' onclick="CkRemote('ddisremote','litpic')" />
远程图片 <br />
</td>
<td width="464"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="30"> 本地上传请点击“浏览”按钮
<input name="litpic" type="file" id="litpic" style="width:200px" onchange="SeePic(document.picview,document.form1.litpic);" />
</td>
</tr>
<tr>
<td height="30"><input name="picname" type="text" id="picname" style="width:250px" />
<input type="button" name="Submit2" value="在网站内选择" style="width:120px" onclick="SelectImage('form1.picname','small');" class="inputbut" />
</td>
</tr>
</table></td>
<td width="201" align="center"><img src="img/pview.gif" width="150" id="picview" name="picview" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 简略标题:</td>
<td width="250"><input name="shorttitle" type="text" id="shorttitle" style="width:150px" />
</td>
<td width="90">自定义属性:</td>
<td><select name='arcatt' style='width:150px'>
<option value='0'>普通文档</option>
<?php
$dsql->SetQuery("Select * From #@__arcatt order by att asc");
$dsql->Execute();
while($trow = $dsql->GetObject())
{
echo "<option value='{$trow->att}'>{$trow->attname}(att={$trow->att})</option>";
}
?>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 软件主栏目:</td>
<td width="400"><?php
if(empty($cid)) echo GetTypeidSel('form1','typeid','selbt1',$channelid);
else{
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
echo "<select name='typeid' style='width:300px'>\r\n";
echo "<option value='0'>请选择主分类...</option>\r\n";
echo $typeOptions;
echo "</select>";
}
?></td>
<td>(只允许在白色选项的栏目中发布当前类型内容)</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" bgcolor="#FFFFFF" class="bline2"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 软件副栏目:</td>
<td><?php echo GetTypeidSel('form1','typeid2','selbt2',$channelid)?></td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="22"> 内容排序:</td>
<td width="240"><select name="sortup" id="sortup" style="width:150px">
<option value="0" selected="selected">默认排序</option>
<option value="7">置顶一周</option>
<option value="30">置顶一个月</option>
<option value="90">置顶三个月</option>
<option value="180">置顶半年</option>
<option value="360">置顶一年</option>
</select>
</td>
<td width="90">标题颜色:</td>
<td width="159"><input name="color" type="text" id="color" style="width:120px" />
</td>
<td><input name="modcolor" type="button" id="modcolor" value="选取" onclick="ShowColor()" class="inputbut" />
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 阅读权限:</td>
<td width="240"><select name="arcrank" id="arcrank" style="width:150px">
<?php
$dsql->SetQuery("Select * from #@__arcrank ");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
}
?>
</select>
</td>
<td width="90">发布选项:</td>
<td><input name="ishtml" type="radio" value="1" checked="checked" />
生成HTML
<input type="radio" name="ishtml" value="0" />
仅动态浏览</td>
</tr>
</table></td>
</tr>
<tr>
<td height="76" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="81" height="51"> 简要说明:</td>
<td width="235"><textarea name="description" rows="3" id="description" style="width:200px"></textarea>
</td>
<td width="81">关键字:</td>
<td width="211"><textarea name="keywords" rows="3" id="keywords" style="width:200px"></textarea>
</td>
<td width="192" align="left"> 用空格分开<br/>
<input type="button" name="Submit" value="浏览..." style="width:56px;height:20px" onclick="SelectKeywords('form1.keywords');" class="inputbut" />
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 发布时间:</td>
<td width="400"><?php
$nowtime = GetDateTimeMk(mytime());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
?>
</td>
<td width="99" align="center">消费点数:</td>
<td width="211"><input name="money" type="text" id="money" value="0" size="10" />
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="65"> 相关文档:</td>
<td width="330"><textarea name="likeid" cols="50" rows="6" id="likeid" style="width:320px;height:51px;float:left;margin-right:10px"></textarea></td>
<td>
<span style="padding-top:10px;maring:0px;">把文档ID,用逗号“,”分开<br/>
<input name="lsel" type="button" id="lsel" class="inputbut" style="width:150px" onchange="" value="从已发布文档中选取..." onclick="SelectArcListA('form1.likeid');" />
</span>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="display:none">
<tr>
<td style="padding:0px;">
<?php
PrintAutoFieldsAdd($cInfos['fieldset'],'autofield','90');
?>
</td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 软件来源:</td>
<td width="240"><input name="source" type="text" id="source" style="width:200px" />
</td>
<td width="90">软件作者:</td>
<td width="159"><input name="writer" type="text" id="writer" style="width:120px" /></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" height="28" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 文件类型:</td>
<td width="240"><select name="filetype" id="filetype" style="width:100px">
<option value=".exe" selected="selected">.exe</option>
<option value=".zip">.zip</option>
<option value=".rar">.rar</option>
<option value=".iso">.iso</option>
<option value=".gz">.gz</option>
<option value="其它">其它</option>
</select>
</td>
<td width="90">界面语言:</td>
<td><select name="language" id="language" style="width:100px">
<option value="简体中文" selected="selected">简体中文</option>
<option value="英文软件">英文软件</option>
<option value="繁体中文">繁体中文</option>
<option value="其它类型">其它类型</option>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 软件类型:</td>
<td width="240"><select name="softtype" id="softtype" style="width:100px">
<option value="国产软件" selected="selected">国产软件</option>
<option value="国外软件">国外软件</option>
<option value="汉化补丁">汉化补丁</option>
</select>
</td>
<td width="90">授权方式:</td>
<td><select name="accredit" id="accredit" style="width:100px">
<option value="共享软件" selected="selected">共享软件</option>
<option value="免费软件">免费软件</option>
<option value="开源软件">开源软件</option>
<option value="商业软件">商业软件</option>
<option value="破解软件">破解软件</option>
<option value="游戏外挂">游戏外挂</option>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 运行环境:</td>
<td width="240"><input type='text' name='os' value='Win2003,WinXP,Win2000,Win9X' style='width:200px' />
</td>
<td width="90">软件等级:</td>
<td><select name="softrank" id="softrank" style="width:100px">
<option value="1">一星</option>
<option value="2">二星</option>
<option value="3" selected="selected">三星 </option>
<option value="4">四星</option>
<option value="5">五星</option>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 官方网址:</td>
<td width="240"><input name="officialUrl" type="text" id="officialUrl" value="http://" />
</td>
<td width="90">程序演示:</td>
<td><input name="officialDemo" type="text" id="officialDemo" />
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90"> 软件大小:</td>
<td width="240"><input name="softsize" type="text" id="softsize" style="width:100px" />
<select name="unit" id="unit">
<option value="MB" selected="selected">MB</option>
<option value="KB">KB</option>
<option value="GB">GB</option>
</select>
</td>
<td width="90"> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" bgcolor="#F1F5F2" class="bline2"><strong> 软件链接列表:</strong></td>
</tr>
<tr>
<td height="28" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="33"> 本地下载:</td>
<td height="33"><input name="softurl1" type="text" id="softurl1" size="40" />
<input name="sel1" type="button" id="sel1" value="选取" onclick="SelectSoft('form1.softurl1')" class="inputbut" />
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="33"> 其它地址:</td>
<td height="33"><input name="picnum" type="text" id="picnum" size="8" value="5" />
<input name='kkkup' type='button' id='kkkup2' value='生成表单' onclick="MakeUpload();" class="inputbut" />
(最多为9个链接) </td>
</tr>
</table></td>
</tr>
<tr>
<td height="28" class="bline"><span id='uploadfield'></span></td>
</tr>
<tr>
<td height="28" bgcolor="#F1F5F2" class="bline2"><strong>软件详细介绍:</strong></td>
</tr>
<tr>
<td height="100" class="bline">
<?php
GetEditor("body","",250,"Small");
?>
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="56"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="17%"> </td>
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="115" height="35"><input name="imageField" type="submit" class="inputbut" value="确定" /></td>
<td width="99" height="35"><input name="button" type="reset" class="inputbut" id="button" value="重置"/></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<script type="text/javascript">
<!--
if($Nav()!="IE") ShowObj('adset');
InitPage();
//-->
</script>
</body>
</html> | zyyhong | trunk/jiaju001/news/lic/templets/soft_add.htm | HTML | asf20 | 22,535 |
<?php
require(dirname(__FILE__)."/config.php");
require(dirname(__FILE__)."/inc/inc_menu.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DedeCms menu</title>
<link href="css_menu.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<script language="javascript">
function getObject(objectId) {
if(document.getElementById && document.getElementById(objectId)) {
// W3C DOM
return document.getElementById(objectId);
}
else if (document.all && document.all(objectId)) {
// MSIE 4 DOM
return document.all(objectId);
}
else if (document.layers && document.layers[objectId]) {
// NN 4 DOM.. note: this won't find nested layers
return document.layers[objectId];
}
else {
return false;
}
}
function showHide(objname){
var obj = getObject(objname);
if(obj.style.display == "none"){
obj.style.display = "block";
}else{
obj.style.display = "none";
}
}
</script>
<base target="main">
<body>
<div class="menu">
<?php
GetMenus($cuserLogin->getUserRank());
?>
</div>
</body>
</html>
<?php ClearAllLink(); ?> | zyyhong | trunk/jiaju001/news/lic/index_menu.php | PHP | asf20 | 1,288 |
td {
font-size: 9pt;
line-height: 1.5;
font-family: "宋体";
}
body {
font-size: 9pt;
line-height: 1.5;
font-family: "宋体";
scrollbar-base-color:#8CC1FE;
scrollbar-arrow-color:#FFFFFF;
scrollbar-shadow-color:#6994C2
}
form,h1,h2,h3,h4,h5,h6,ul,ol,dl,li,dd{ margin: 0; padding:0;}
ul {
list-style-type: none;
}
li {
list-style-type: none;
}
a:link { font-size: 9pt; color: #000000; text-decoration: none; font-family: "宋体"; }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none; font-family: "宋体"; }
a:hover {color: red; font-family: "宋体";}
input{ border: 1px solid #9ad240; font:12px 宋体; }
input[type="button"]{ border: 1px solid #9ad240; font:12px 宋体; background-color:#eff6b6 }
input[type="image"]{ border:none }
.nbt{
font:12px 宋体; padding: 1px 3px 0 3px ;
vertical-align:middle ; margin-bottom:1px;
border:3px double #9ad240; background:#eff6b6; height:21px ;
}
.htable{ border-bottom:1px solid #95D2F0 }
.np{ border:none }
.linerow{border-bottom: 1px solid #ACACAC;}
.coolbg {
padding:1px;
border-right: 2px solid #548FCB;
border-bottom: 2px solid #548FCB;
background-color: #B5E8FB;
}
.coolbg2 {
border: 1px solid #000000;
background-color: #DFDDD2;
height:18px
}
.bline {border-bottom: 1px solid #95D2F0;background-color: #FFFFFF}
.bline2 {border-bottom: 1px solid #BCBCBC;}
.coolbt {
border-left: 2px solid #EFEFEF;
border-top: 2px solid #EFEFEF;
border-right: 2px solid #ACACAC;
border-bottom: 2px solid #ACACAC;
background-color: #E4F7D7
}
.coolbg3 {
border: 1px solid #BDC5B4;
background-color: #DFDDD2;
height:20px;
width:140px;
text-align:right;
}
.coolbg4 {
border-bottom: 1px solid #C9CFC1;
background-color: #EDEBE5;
height:20px;
width:190px;
text-align:right;
}
.coolbg5 {
border-top: 1px solid #BDC5B4;
background-color: #EDEBE5;
font-size:1pt;
height:6px;
width:190px;
}
.dlg {
border: 2px solid #B6C0B7;
background-color: #F0FAEB;
width:200px;
padding-top:2px;
padding-left:4px;
}
#_mysource{ z-index:5000; }
#_mywriter{ z-index:6000; }
.option1{ background-color: #DCECA6; }
.option2{ background-color: #F7FBD2; }
.option3{ background-color: #FFFFFF; }
.ininput{
width:96%;
height:20px;
border:1px solid #ffffff;
}
.fl{ float:left; margin-right:6px; } | zyyhong | trunk/jiaju001/news/lic/base.css | CSS | asf20 | 2,410 |
<?php
$USEListStyle='infos';
require_once(dirname(__FILE__)."/content_list.php");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/info_list.php | PHP | asf20 | 104 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php");
function GetMemberID($dsql,$mid){
if($mid==0) return '0';
$row = $dsql->GetOne("Select userid From #@__member where ID='$mid' ");
if(is_array($row)) return "<a href='member_view.php?ID={$mid}'>".$row['userid']."</a>";
else return '0';
}
function GetSta($sta){
if($sta==1) return '已售出';
else if($sta==-1) return '已使用';
else return '未使用';
}
$addsql = '';
if(isset($isexp)){
$addsql = " where isexp='$isexp' ";
}
$sql = "Select * From #@__moneycard_record $addsql order by aid desc";
$dlist = new DataList();
$dlist->Init();
if(isset($isexp)){
$dlist->SetParameter("isexp",$isexp);
}
$dlist->dsql->SetQuery("Select * From #@__moneycard_type ");
$dlist->dsql->Execute('ts');
while($rw = $dlist->dsql->GetArray('ts')){
$TypeNames[$rw['tid']] = $rw['pname'];
}
$dlist->SetSource($sql);
include(dirname(__FILE__)."/templets/member_card.htm");
$dlist->Close();
ClearAllLink();
?>
| zyyhong | trunk/jiaju001/news/lic/member_card.php | PHP | asf20 | 1,075 |
<?php
require_once(dirname(__FILE__)."/config.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $cfg_softname." ".$cfg_version?></title>
</head>
<frameset rows="76,*" cols="*" frameborder="no" border="0" framespacing="0" >
<frame src="index_top.php" name="topFrame" id="topFrame" scrolling="no" noresize>
<frameset cols="176,*" name="bodyFrame" id="bodyFrame" frameborder="no" border="0" framespacing="0" >
<frame src="index_menu.php?c=9" name="menu" id="menu" scrolling="auto" noresize>
<frame src="index_body.php" name="main" id="main" scrolling="auto" noresize>
</frameset>
</frameset>
<noframes>
<body>你的浏览器不支持框架!</body>
</noframes>
</html>
| zyyhong | trunk/jiaju001/news/lic/index.php | PHP | asf20 | 766 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Edit');
if(empty($dopost)) $dopost = "";
$configfile = dirname(__FILE__)."/../include/config_hand.php";
$configfile_bak = dirname(__FILE__)."/../include/config_hand_bak.php";
header("Content-Type: text/html; charset={$cfg_ver_lang}");
if(!is_writeable($configfile)){
echo "配置文件'{$configfile}'不支持写入,严禁修改系统配置参数!";
exit();
}
if(empty($gp)) $gp = 1;
//保存更改
if($dopost=="save")
{
$dsql = new DedeSql(false);
foreach($_POST as $k=>$v){
if(ereg("^edit___",$k)){
$v = ${$k};
}else continue;
$k = ereg_replace("^edit___","",$k);
if(strlen($v) > 250){
showmsg("$k 太长,不能超过250字节",'-1');
exit;
}
$dsql->ExecuteNoneQuery("Update #@__sysconfig set `value`='$v' where `varname`='$k' And `group`<>-1 ");
}
$dsql->SetQuery("Select `varname`,`value` From `#@__sysconfig` order by `aid` asc");
$dsql->Execute();
if($dsql->GetTotalRow()<=0){
$dsql->Close();
ShowMsg("成功保存变量但从数据库读取所有数据时失败,无法更新配置文件!","javascript:;");
exit();
}
@copy($configfile,$configfile_bak);
$fp = @fopen($configfile,'w');
@flock($fp,3);
@fwrite($fp,"<"."?php\r\n") or die("配置文件'{$configfile}'不支持写入,本次操作无效!<a href='sys_info.php'>返回</a>");
while($row = $dsql->GetArray()){
$row['value'] = str_replace("'","\\'",$row['value']);
fwrite($fp,"\${$row['varname']} = '".$row['value']."';\r\n");
}
fwrite($fp,"?>");
fclose($fp);
$dsql->Close();
ShowMsg("成功更改站点配置!","sys_info.php");
exit();
}
require_once(dirname(__FILE__)."/templets/sys_info.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/sys_info.php | PHP | asf20 | 1,789 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Edit');
$varname = $_POST['varname'];
if(!eregi('cfg_',$varname)){
ShowMsg("变量名称必须以 cfg_ 开头","-1");
exit();
}
if($vartype=='bool' && ($varvalue!='Y' && $varvalue!='N')){
ShowMsg("布尔变量值必须为'Y'或'N'!","-1");
exit();
}
$varvalue = htmlspecialchars($varvalue);
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__sysconfig where varname like '$varname' ");
if(is_array($row)){
ShowMsg("该变量名称已经存在!","-1");
$dsql->Close();
exit();
}
$row = $dsql->GetOne("Select * From #@__sysconfig order by aid desc ");
$aid = $row['aid']+1;
$inquery = "INSERT INTO `#@__sysconfig`(`aid`,`varname`,`info`,`value`,`type`,`group`)
VALUES ('$aid','$varname','$varmsg','$varvalue','$vartype','$vargroup')";
$rs = $dsql->ExecuteNoneQuery($inquery);
if(!$rs){
$dsql->Close();
ShowMsg("新增变量失败,可能有非法字符!","sys_info.php?gp=$vargroup");
exit();
}
$configfile = dirname(__FILE__)."/../include/config_hand.php";
$configfile_bak = dirname(__FILE__)."/../include/config_hand_bak.php";
if(!is_writeable($configfile)){
$dsql->Close();
ShowMsg("成功保存变量,但由于 $configfile 无法写入,因此不能更新配置文件!","sys_info.php?gp=$vargroup");
exit();
}else{
$dsql->SetQuery("Select varname,value From #@__sysconfig order by aid asc");
$dsql->Execute();
if($dsql->GetTotalRow()<=0){
$dsql->Close();
ShowMsg("成功保存变量但从数据库读取所有数据时失败,无法更新配置文件!","sys_info.php?gp=$vargroup");
exit();
}
copy($configfile,$configfile_bak);
$fp = fopen($configfile,"w");
fwrite($fp,"<"."?php\r\n");
while($row = $dsql->GetArray()){
fwrite($fp,"\${$row['varname']} = '".str_replace("'","\\'",$row['value'])."';\r\n");
}
fwrite($fp,"?".">");
fclose($fp);
$dsql->Close();
ShowMsg("成功保存变量并更新配置文件!","sys_info.php?gp=$vargroup");
exit();
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/sys_info_add.php | PHP | asf20 | 2,093 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/templets/makehtml_rss.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/makehtml_rss.php | PHP | asf20 | 140 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
require_once(dirname(__FILE__)."/inc/inc_batchup.php");
require_once(dirname(__FILE__)."/inc/inc_archives_functions.php");
empty($_COOKIE['ENV_GOBACK_URL']) ? $ENV_GOBACK_URL = "content_list.php" : $ENV_GOBACK_URL=$_COOKIE['ENV_GOBACK_URL'];
if(empty($dopost)||empty($aid)){
ShowMsg("对不起,你没指定运行参数!","-1");
exit();
}
$aid = ereg_replace("[^0-9]","",$aid);
/*--------------------------
//编辑文档
function editArchives();
---------------------------*/
if($dopost=="editArchives")
{
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select c.editcon from `#@__full_search` i left join #@__channeltype c on c.ID=i.channelid where i.aid='$aid'");
$gurl = $row["editcon"];
$dsql->Close();
if($gurl==""){ $gurl="article_edit.php"; }
require_once(dirname(__FILE__)."/$gurl");
}
/*--------------------------
//浏览文档
function viewArchives();
---------------------------*/
else if($dopost=="viewArchives")
{
$aid = intval($aid);
$dsql = new DedeSql(-100);
$tables = GetChannelTable($dsql,$aid,'arc');
$arcQuery = "
Select arc.ID,arc.title,arc.typeid,arc.channel,
arc.ismake,arc.senddate,arc.arcrank,c.addtable,
arc.money,t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,
t.moresite,t.siteurl,t.siterefer,t.sitepath
from `{$tables['maintable']}` arc
left join #@__arctype t on t.ID = arc.typeid
left join #@__channeltype c on c.ID = arc.channel
where arc.ID='$aid'
";
$arcRow = $dsql->GetOne($arcQuery);
if($arcRow['ismake']==-1||$arcRow['arcrank']!=0
||$arcRow['typeid']==0||$arcRow['money']>0||$arcRow['channel']<-1)
{
$dsql->Close();
echo "<script language='javascript'>location.href='{$cfg_plus_dir}/view.php?aid={$aid}';</script>";
exit();
}
$arcurl = GetFileUrl($arcRow['ID'],$arcRow['typeid'],$arcRow['senddate'],$arcRow['title'],$arcRow['ismake'],
$arcRow['arcrank'],$arcRow['namerule'],$arcRow['typedir'],$arcRow['money'],true,$arcRow['siteurl']);
$arcfile = GetFileUrl($arcRow['ID'],$arcRow['typeid'],$arcRow['senddate'],$arcRow['title'],$arcRow['ismake'],
$arcRow['arcrank'],$arcRow['namerule'],$arcRow['typedir'],$arcRow['money'],false,'');
$truefile = GetTruePath($arcRow['siterefer'],$arcRow['sitepath']).$arcfile;
MakeArt($aid,true,true);
$dsql->Close();
echo "<script language='javascript'>location.href='$arcurl"."?".time()."';</script>";
exit();
}
/*--------------------------
//推荐文档
function commendArchives();
---------------------------*/
else if($dopost=="commendArchives")
{
CheckPurview('a_Commend,sys_ArcBatch');
$dsql = new DedeSql(false);
if( $aid!="" && !ereg("(".$aid."`|`".$aid.")",$qstr) ) $qstr .= "`".$aid;
if($qstr==""){
ShowMsg("参数无效!",$ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`",$qstr);
$dsql = new DedeSql(false);
foreach($qstrs as $aid)
{
$aid = ereg_replace("[^0-9]","",$aid);
if($aid=='') continue;
$tables = GetChannelTable($dsql,$aid,'arc');
$dsql->ExecuteNoneQuery(" Update `{$tables['maintable']}` set iscommend=iscommend+11 where ID='$aid' and iscommend<11 ");
}
$dsql->Close();
ShowMsg("成功把所选的文档设为推荐!",$ENV_GOBACK_URL);
exit();
}
/*--------------------------
//生成HTML
function makeArchives();
---------------------------*/
else if($dopost=="makeArchives")
{
CheckPurview('sys_MakeHtml,sys_ArcBatch');
$aid = ereg_replace("[^0-9]","",$aid);
require_once(dirname(__FILE__)."/inc/inc_archives_functions.php");
if(empty($qstr)){
$pageurl = MakeArt($aid,true,true);
ClearAllLink();
ShowMsg("成功更新{$pageurl}...",$ENV_GOBACK_URL);
exit();
}
else{
$qstrs = explode("`",$qstr);
$i = 0;
foreach($qstrs as $aid){
$i++;
$pageurl = MakeArt($aid,false,false);
}
ClearAllLink();
ShowMsg("成功更新指定 $i 个文件...",$ENV_GOBACK_URL);
exit();
}
}
/*--------------------------
//审核文档
function checkArchives();
---------------------------*/
else if($dopost=="checkArchives")
{
CheckPurview('a_Check,a_AccCheck,sys_ArcBatch');
require_once(DEDEADMIN."/inc/inc_archives_functions.php");
$dsql = new DedeSql(false);
if( $aid!="" && !ereg("(".$aid."`|`".$aid.")",$qstr) ) $qstr .= "`".$aid;
if($qstr==""){
ShowMsg("参数无效!",$ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`",$qstr);
foreach($qstrs as $aid)
{
$aid = ereg_replace("[^0-9]","",$aid);
if($aid=="") continue;
$tables = GetChannelTable($dsql,$aid,'arc');
$dsql->ExecuteNoneQuery(" Update `{$tables['maintable']}` set arcrank='0' where ID='$aid' And arcrank<'0' ");
$dsql->ExecuteNoneQuery(" Update `#@__full_search` set arcrank='0' where aid='$aid' And arcrank<'0' ");
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `{$tables['maintable']}`; ");
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `#@__full_search`; ");
$pageurl = MakeArt($aid,false,false);
$dsql->ExecuteNoneQuery(" Update `#@__full_search` set url='$pageurl' where aid='$aid'");
}
ClearAllLink();
ShowMsg("成功审核指定的文档!",$ENV_GOBACK_URL);
exit();
}
/*--------------------------
//删除文档
function delArchives();
---------------------------*/
else if($dopost=="delArchives")
{
CheckPurview('a_Del,a_AccDel,a_MyDel,sys_ArcBatch');
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
if(empty($fmdo)) $fmdo = "";
if($fmdo=="yes")
{
if( $aid!="" && !ereg("(".$aid."`|`".$aid.")",$qstr) ) $qstr .= "`".$aid;
if($qstr==""){
ShowMsg("参数无效!",$ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`",$qstr);
$okaids = Array();
$dsql = new DedeSql(false);
foreach($qstrs as $aid){
echo $channelid;
if(!isset($okaids[$aid])) DelArc($aid,false,$channelid);
else $okaids[$aid] = 1;
}
$dsql->Close();
ShowMsg("成功删除指定的文档!",$ENV_GOBACK_URL);
exit();
}//确定刪除操作完成
//删除确认消息
//-----------------------
$wintitle = "文档管理-删除文档";
$wecome_info = "<a href='".$ENV_GOBACK_URL."'>文档管理</a>::删除文档";
$win = new OxWindow();
$win->Init("archives_do.php","js/blank.js","POST");
$win->AddHidden("fmdo","yes");
$win->AddHidden("dopost",$dopost);
$win->AddHidden("channelid",$channelid);
$win->AddHidden("qstr",$qstr);
$win->AddHidden("aid",$aid);
$win->AddTitle("你确实要删除“ $qstr 和 $aid ”这些文档?");
$winform = $win->GetWindow("ok");
$win->Display();
}
/*-----------------------------
function moveArchives()
------------------------------*/
else if($dopost=='moveArchives'){
CheckPurview('sys_ArcBatch');
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
if(empty($targetTypeid)){
$tl = new TypeLink(0);
$typeOptions = $tl->GetOptionArray(0,$tl->TypeInfos['channeltype'],0);
$tl->Close();
$typeOptions = "
<select name='targetTypeid' style='width:350'>
<option value='0'>请选择移动到的位置...</option>\r\n
$typeOptions
</select>
";
$wintitle = "文档管理-移动文档";
$wecome_info = "<a href='".$ENV_GOBACK_URL."'>文档管理</a>::移动文档";
$win = new OxWindow();
$win->Init("archives_do.php","js/blank.js","POST");
$win->AddHidden("fmdo","yes");
$win->AddHidden("dopost",$dopost);
$win->AddHidden("qstr",$qstr);
$win->AddHidden("aid",$aid);
$win->AddTitle("你目前的操作是移动文档,请选择目标栏目:");
$win->AddMsgItem($typeOptions,"30","1");
$win->AddMsgItem("你选中的文档ID是: $qstr <br>移动的栏目必须和选定的文档频道类型一致,否则程序会自动勿略不符合的文档。","30","1");
$winform = $win->GetWindow("ok");
$win->Display();
}else{
$targetTypeid = ereg_replace('[^0-9]','',$targetTypeid);
$dsql = new DedeSql(false);
$typeInfos = $dsql->GetOne(" Select * From #@__arctype where ID='$targetTypeid' ");
if(!is_array($typeInfos)){
ShowMsg("参数错误!","-1");
$dsql->Close();
exit();
}
if($typeInfos['ispart']!=0){
ShowMsg("文档保存的栏目必须为最终列表栏目!","-1");
$dsql->Close();
exit();
}
$arcids = explode('`',$qstr);
$arc = "";
$j = 0;
$okids = Array();
foreach($arcids as $arcid){
$arcid = ereg_replace('[^0-9]','',$arcid);
$tables = GetChannelTable($dsql,$arcid,'arc');
if($tables['channelid']==$typeInfos['channeltype'])
{
$dsql->ExecuteNoneQuery("Update `{$tables['maintable']}` Set typeid='$targetTypeid' where ID='$arcid' ");
$dsql->ExecuteNoneQuery("Update `{$tables['addtable']}` Set typeid='$targetTypeid' where aid='$arcid' ");
$dsql->ExecuteNoneQuery("Update `#@__full_search` Set typeid='$targetTypeid' where aid='$arcid' ");
$okids[] = $arcid;
$j++;
}
}
//更新HTML
require_once(DEDEADMIN."/../include/inc_archives_view.php");
foreach($okids as $aid){
$arc = new Archives($aid);
$arc->MakeHtml();
}
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `{$tables['maintable']}`; ");
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `#@__full_search`; ");
$dsql->Close();
if(is_object($arc)) $arc->Close();
ShowMsg("成功移动 $j 个文档!",$ENV_GOBACK_URL);
exit();
}
}
?> | zyyhong | trunk/jiaju001/news/lic/archives_do.php | PHP | asf20 | 9,583 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('member_Data');
if(empty($notcdata)) $notcdata = 0;
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select count(*) as dd From #@__member ");
$dd = $row['dd'];
//保存配置
$configfile = dirname(__FILE__)."/../include/config_hand.php";
$configfile_bak = dirname(__FILE__)."/../include/config_hand_bak.php";
$dsql->ExecuteNoneQuery("Update #@__sysconfig set value='$newtype' where varname='cfg_pwdtype' ");
$dsql->ExecuteNoneQuery("Update #@__sysconfig set value='$newmd5len' where varname='cfg_md5len' ");
$dsql->ExecuteNoneQuery("Update #@__sysconfig set value='$newsign' where varname='cfg_ddsign' ");
$dsql->SetQuery("Select varname,value From #@__sysconfig order by aid asc");
$dsql->Execute();
copy($configfile,$configfile_bak) or die("保存配置{$configfile}时失败!请检测权限");
$fp = fopen($configfile,'w') or die("保存配置{$configfile}时失败!请检测权限");
flock($fp,3);
fwrite($fp,"<"."?php\r\n");
while($row = $dsql->GetArray()){
fwrite($fp,"\${$row['varname']} = '".str_replace("'","\\'",$row['value'])."';\r\n");
}
fwrite($fp,"?".">");
fclose($fp);
if($dd==0){
$dsql->Close();
ShowMsg("成功保存配置,由于会员系统无数据,因此不需转换!","javascript:;");
exit();
}
if($notcdata==1){
$dsql->Close();
ShowMsg("成功保存配置!","javascript:;");
exit();
}
//-------------------------------
//旧密码为文明密码
if($cfg_pwdtype=='none'){
if($newtype=='none'){
$dsql->Close();
ShowMsg("你指定的类型和系统目前的类型一致,不需要转换!","javascript:;");
exit();
}
$cfg_pwdtype = $newtype;
$cfg_md5len = $newmd5len;
$cfg_ddsign = $newsign;
$dsql->SetQuery("Select ID,pwd From #@__member ");
$dsql->Execute();
while($row = $dsql->GetArray()){
$pwd = addslashes(GetEncodePwd($row['pwd']));
$ID = $row['ID'];
$dsql->ExecuteNoneQuery("Update #@__member set pwd='$pwd' where ID='$ID' ");
}
$dsql->Close();
ShowMsg("成功完成 {$dd} 条数据的转换!","javascript:;");
exit();
}
//旧密码为dede加密算法密码
else if($cfg_pwdtype=='dd'){
if($newtype=='dd' && $newsign==$cfg_ddsign){
$dsql->Close();
ShowMsg("你指定的类型和系统目前的类型一致,不需要转换!","javascript:;");
exit();
}
$oosign = $cfg_ddsign;
$cfg_pwdtype = $newtype;
$cfg_md5len = $newmd5len;
$cfg_ddsign = $newsign;
$dsql->SetQuery("Select ID,pwd From #@__member ");
$dsql->Execute();
while($row = $dsql->GetArray()){
$ID = $row['ID'];
$pwd = DdPwdDecode($row['pwd'],$oosign);
$pwd = addslashes(GetEncodePwd($pwd));
$dsql->ExecuteNoneQuery("Update #@__member set pwd='$pwd' where ID='$ID' ");
}
$dsql->Close();
ShowMsg("成功完成 {$dd} 条数据的转换!","javascript:;");
exit();
}
//旧密码为md5密码
else if($cfg_pwdtype=='md5'){
if($newtype!='md5'){
$dsql->Close();
ShowMsg("你原来的数据类型为MD5类型,系统无法转换你的数据为非MD5类型!","javascript:;");
exit();
}
if($newmd5len > $cfg_md5len){
$dsql->Close();
ShowMsg("你原来的MD5密码比你目前指定的短,系统无法转换为更长的密码!","javascript:;");
exit();
}
if($newmd5len == $cfg_md5len){
$dsql->Close();
ShowMsg("你原来的密码和你所选的一样,无需转换!","javascript:;");
exit();
}
$dsql->SetQuery("Select ID,pwd From #@__member ");
$dsql->Execute();
while($row = $dsql->GetArray()){
$ID = $row['ID'];
$pwd = $row['pwd'];
$pwd = substr($pwd,0,$newmd5len);
$dsql->ExecuteNoneQuery("Update #@__member set pwd='$pwd' where ID='$ID' ");
}
$dsql->Close();
ShowMsg("成功完成 {$dd} 条数据的转换!","javascript:;");
exit();
}
//旧密码为md5中间16位
else if($cfg_pwdtype=='md5m16'){
$dsql->Close();
ShowMsg("你原来的数据类型为MD5中间取16位的类型,无法转换为其它数据!","javascript:;");
exit();
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/member_password_action.php | PHP | asf20 | 4,064 |
<?php
require_once(dirname(__FILE__)."/../config.php");
CheckPurview('a_New,a_AccNew');
require_once(DEDEADMIN."/inc/inc_archives_functions.php");
if(!isset($iscommend)) $iscommend = 0;
if(!isset($isjump)) $isjump = 0;
if(!isset($isbold)) $isbold = 0;
if(!isset($autokey)) $autokey = 0;
if(!isset($remote)) $remote = 0;
if(!isset($dellink)) $dellink = 0;
if(!isset($autolitpic)) $autolitpic = 0;
if($typeid==0){
ShowMsg("请指定文档的栏目!","-1");
exit();
}
if(empty($channelid)){
ShowMsg("文档为非指定的类型,请检查你发布内容的表单是否合法!","-1");
exit();
}
if(!CheckChannel($typeid,$channelid) || !CheckChannel($typeid2,$channelid)){
ShowMsg("你所选择的栏目与当前模型不相符,请选择白色的选项!","-1");
exit();
}
if(!TestPurview('a_New')) {
CheckCatalog($typeid,"对不起,你没有操作栏目 {$typeid} 的权限!");
if($typeid2!=0) CheckCatalog($typeid2,"对不起,你没有操作栏目 {$typeid2} 的权限!");
}
$arcrank = GetCoRank($arcrank,$typeid);
//对保存的内容进行处理
//--------------------------------
$iscommend = $iscommend + $isbold;
$uptime = $senddate = time();
$pubdate = GetMkTime($pubdate);
$sortrank = AddDay($senddate,$sortup);
if($ishtml==0) $ismake = -1;
else $ismake = 0;
$title = cn_substr($title,80);
$shorttitle = cn_substr($shorttitle,36);
$color = cn_substr($color,10);
$writer = cn_substr($writer,30);
$source = cn_substr($source,50);
$description = cn_substr($description,250);
$keywords = cn_substr($keywords,60);
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')){ $arcrank = -1; }
//处理上传的缩略图
if(empty($ddisremote)) $ddisremote = 0;
$litpic = GetDDImage('litpic',$picname,$ddisremote);
$body = stripslashes($body);
//自动摘要
if($description=="" && $cfg_auot_description>0){
$description = stripslashes(cn_substr(html2text($body),$cfg_auot_description));
$description = trim(preg_replace("/#p#|#e#/","",$description));
$description = addslashes($description);
}
//把内容中远程的图片资源本地化
//------------------------------------
if($cfg_isUrlOpen && $remote==1){
$body = GetCurContent($body);
}
//去除内容中的站外链接
//------------------------------------
if($dellink==1){
$body = str_replace($cfg_basehost,'#basehost#',$body);
$body = preg_replace("/(<a[ \t\r\n]{1,}(.*)href=[\"']{0,}http:\/\/[^\/]([^>]*)>)|(<\/a>)/isU","",$body);
$body = str_replace('#basehost#',$cfg_basehost,$body);
}
//自动获取文章中的关键字
//----------------------------------
if($autokey==1){
require_once(DEDEADMIN."/../include/pub_splitword_www.php");
$keywords = "";
$sp = new SplitWord();
$titleindexs = explode(" ",trim($sp->GetIndexText($sp->SplitRMM($title))));
$allindexs = explode(" ",trim($sp->GetIndexText($sp->SplitRMM(Html2Text($body)),200)));
if(is_array($allindexs) && is_array($titleindexs)){
foreach($titleindexs as $k){
if(strlen($keywords)>=50) break;
else $keywords .= $k." ";
}
foreach($allindexs as $k){
if(strlen($keywords)>=50) break;
else if(!in_array($k,$titleindexs)) $keywords .= $k." ";
}
}
$sp->Clear();
unset($sp);
$keywords = preg_replace("/#p#|#e#/","",$keywords);
$keywords = addslashes($keywords);
}
//自动分页
$sptype = (empty($sptype) ? '' : $sptype);
if($sptype=="auto"){
$body = SpLongBody($body,$spsize*1024,"#p#分页标题#e#");
}
//自动获取缩略图
if($autolitpic==1 && $litpic==''){
$litpic = GetDDImgFromBody($body);
}
$body = addslashes($body);
if($keywords!="") $keywords = trim(cn_substr($keywords,60))." ";
$adminID = $cuserLogin->getUserID();
$dsql = new DedeSql(false);
$cts = GetChannelTable($dsql,$channelid);
$arcID = GetIndexKey($dsql,$typeid,$channelid);
//加入数据库的SQL语句
//----------------------------------
$inQuery = "INSERT INTO `{$cts['maintable']}`(
ID,typeid,typeid2,sortrank,iscommend,ismake,channel,
arcrank,click,money,title,shorttitle,color,writer,source,litpic,
pubdate,senddate,arcatt,adminID,memberID,description,keywords,templet,redirecturl,likeid)
VALUES ('$arcID','$typeid','$typeid2','$sortrank','$iscommend','$ismake','$channelid',
'$arcrank','0','$money','$title','$shorttitle','$color','$writer','$source','$litpic',
'$pubdate','$senddate','$arcatt','$adminID','0','$description','$keywords','$templet','$redirecturl','$likeid');";
if(!$dsql->ExecuteNoneQuery($inQuery)){
$gerr = $dsql->GetError();
$query = "delete from #@__full_search where aid='$arcID' limit 1;";
$dsql->ExecuteNoneQuery($query);
$dsql->Close();
ShowMsg("把数据保存到数据库主表 `{$cts['maintable']}` 时出错,请把相关信息提交给DedeCms官方。".$gerr,"javascript:;");
exit();
}
//----------------------------------
//分析处理附加表数据
//----------------------------------
$inadd_f = '';
$inadd_v = '';
if(!empty($dede_addonfields))
{
$addonfields = explode(";",$dede_addonfields);
$inadd_f = "";
$inadd_v = "";
if(is_array($addonfields))
{
foreach($addonfields as $v)
{
if($v=="") continue;
$vs = explode(",",$v);
//HTML文本特殊处理
if($vs[1]=="htmltext"||$vs[1]=="textdata")
{
include_once(DEDEADMIN.'/inc/inc_arc_makeauto.php');
}else{
${$vs[0]} = GetFieldValueA(${$vs[0]},$vs[1],$arcID);
}
$inadd_f .= ",".$vs[0];
$inadd_v .= ",'".${$vs[0]}."'";
}
}
}
$dsql->SetQuery("INSERT INTO `{$cts['addtable']}`(aid,typeid,body{$inadd_f}) Values('$arcID','$typeid','$body'{$inadd_v})");
if(!$dsql->ExecuteNoneQuery()){
$gerr = $dsql->GetError();
$dsql->ExecuteNoneQuery("Delete From {$cts['maintable']} where ID='$arcID' limit 1");
$dsql->ExecuteNoneQuery("Delete From `#@__full_search` where aid='$arcID' limit 1");
$dsql->Close();
ShowMsg("把数据保存到数据库附加表 `{$cts['addtable']}` 时出错,请把相关信息提交给DedeCms官方。".$gerr,"javascript:;");
exit();
}
$artUrl = getfilenameonly($arcID, $typeid, $senddate, $title, $ismake, $arcrank, $money);
//写入全站搜索索引
$datas = array('aid'=>$arcID,'typeid'=>$typeid,'channelid'=>$channelid,'adminid'=>$adminID,'mid'=>0,'att'=>$arcatt,
'title'=>$title,'url'=>$artUrl,'litpic'=>$litpic,'keywords'=>$keywords,'pubdate'=>$pubdate,
'addinfos'=>$description,'uptime'=>$senddate,'arcrank'=>$arcrank);
WriteSearchIndex($dsql,$datas);
unset($datas);
//写入Tag索引
InsertTags($dsql,$tag,$arcID,0,$typeid,$arcrank);
//生成HTML
//---------------------------------
MakeArt($arcID,true,true);
//---------------------------------
//返回成功信息
//----------------------------------
$msg = "
请选择你的后续操作:
<a href='../article_add.php?cid=$typeid'><u>继续发布文章</u></a>
<a href='$artUrl' target='_blank'><u>查看文章</u></a>
<a href='../archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改文章</u></a>
<a href='../catalog_do.php?cid=$typeid&dopost=listArchives'><u>已发布文章管理</u></a>
<a href='../catalog_main.php'><u>网站栏目管理</u></a>
";
$wintitle = "成功发布文章!";
$wecome_info = "文章管理::发布文章";
$win = new OxWindow();
$win->AddTitle("成功发布文章:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand"," ",false);
$win->Display();
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/article_add_action.php | PHP | asf20 | 7,583 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('plus_常用小技巧');
if(empty($ismake)) $dopost = "";
if($ismake=="1")
{
$dsql = new DedeSql(false);
$dtime = GetMkTime($sdate);
$query = "update #@__archives set ismake = $ismake";
$dsql->SetQuery($query);
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("批量替换文档生成状态为【静态页面】成功!","doohickey.php");
exit();
}
else if($ismake=="-1")
{
$dsql = new DedeSql(false);
$dtime = GetMkTime($sdate);
$query = "update #@__archives set ismake = $ismake";
$dsql->SetQuery($query);
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("批量替换文档生成状态为【动态页面】成功!","doohickey.php");
exit();
}
require_once(dirname(__FILE__)."/doohickey.html");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/doohickey.php | PHP | asf20 | 854 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/templets/member_data.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/member_data.php | PHP | asf20 | 137 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('member_Card');
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__moneycard_record order by aid desc");
if(!is_array($row)){ $startid = 100000; }
else $startid = $row['aid'] + 100000;
$row = $dsql->GetOne("Select * From #@__moneycard_type where tid='$cardtype'");
$money = $row['money'];
$num = $row['num'];
$mtime = time();
$utime = 0;
$ctid = $cardtype;
$startid++;
$endid = $startid+$mnum;
header("Content-Type: text/html; charset={$cfg_ver_lang}");
for(;$startid<$endid;$startid++){
$cardid = $snprefix.$startid.'-';
for($p=0;$p<$pwdgr;$p++){
for($i=0; $i < $pwdlen; $i++){
if($ctype==1){ $c = mt_rand(49,57); $c = chr($c); }
else{
$c = mt_rand(65,90);
if($c==79) $c = 'M';
else $c = chr($c);
}
$cardid .= $c;
}
if($p<$pwdgr-1) $cardid .= '-';
}
$inquery = "Insert into #@__moneycard_record(ctid,cardid,uid,isexp,mtime,utime,money,num)
Values('$ctid','$cardid','0','0','$mtime','$utime','$money','$num'); ";
$dsql->ExecuteNoneQuery($inquery);
echo "成功生成点卡:{$cardid}<br/>";
}
ClearAllLink();
echo "成功生成 {$mnum} 个点卡!";
?> | zyyhong | trunk/jiaju001/news/lic/member_card_make_action.php | PHP | asf20 | 1,247 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('pic_view');
if(empty($activepath)) $activepath=$cfg_medias_dir;
$activepath = ereg_replace("/{1,}","/",$activepath);
$truePath = $cfg_basedir.$activepath;
$listSize=5;
function GetPrePath($nowPath)
{
if($nowPath==""||$nowPath=="/")
echo("当前为根目录\n");
else
{
$dirs = split("/",$nowPath);
$nowPath = "";
for($i=1;$i<count($dirs)-1;$i++)
{
$nowPath .= "/".$dirs[$i];
}
echo("<a href=\"pic_view.php?activepath=".$nowPath."\">转到上级目录</a>\n");
}
}
function ListPic($truePath,$nowPath)
{
global $listSize;
$col=0;
$rowdd=0;
$rowdd++;
$imgfile="";
$truePath = ereg_replace("/$","",ereg_replace("\\{1,}","/",trim($truePath)));
$nowPath = ereg_replace("/$","",ereg_replace("/{1,}","/",trim($nowPath)));
$dh = dir($truePath);
echo("<tr align='center'>\n");
while($filename=$dh->read())
{
if(!ereg("\.$",$filename))
{
$fullName = $truePath."/".$filename;
$fileUrl = $nowPath."/".$filename;
if(is_dir($fullName))
{
if($col%$listSize==0&&$col!=0)
{
echo("</tr>\n<tr align='center'>\n");
for($i=$rowdd-$listSize;$i<$rowdd;$i++)
{
echo("<td>".$filelist[$i]."</td>\n");
}
echo("</tr>\n<tr align='center'>\n");
}
$line = "
<td>
<table width='106' height='106' border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'>
<tr><td align='center' bgcolor='#FFFFFF'>
<a href='pic_view.php?activepath=".$fileUrl."'>
<img src='img/pic_dir.gif' width='44' height='42' border='0'>
</a></td></tr></table></td>";
$filelist[$rowdd] = $filename;
$col++;
$rowdd++;
echo $line;
}
else if(IsImg($filename))
{
if($col%$listSize==0&&$col!=0)
{
echo("</tr>\n<tr align='center'>\n");
for($i=$rowdd-$listSize;$i<$rowdd;$i++)
{
echo("<td>".$filelist[$i]."</td>\n");
}
echo("</tr>\n<tr align='center'>\n");
}
$line = "
<td>
<table width='106' height='106' border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'>
<tr>
<td align='center' bgcolor='#FFFFFF'>
".GetImgFile($truePath,$nowPath,$filename)."
</td>
</tr></table></td>";
$filelist[$rowdd] = $filename;
$col++;
$rowdd++;
echo $line;
}
}
}
echo("</tr>\n");
if(!empty($filelist))
{
echo("<tr align='center'>\n");
$t = ($rowdd-1)%$listSize;
if($t==0) $t=$listSize;
for($i=$rowdd-$t;$i<$rowdd;$i++)
{
echo("<td>".$filelist[$i]."</td>\n");
}
echo("</tr>\n");
}
}
function GetImgFile($truePath,$nowPath,$fileName)
{
$toW=102;
$toH=102;
$srcFile = $truePath."/".$fileName;
$info = "";
$data = GetImageSize($srcFile,$info);
$srcW=$data[0];
$srcH=$data[1];
if($toW>=$srcW&&$toH>=$srcH)
{
$ftoW=$srcW;
$ftoH=$srcH;
}
else
{
$toWH=$toW/$toH;
$srcWH=$srcW/$srcH;
if($toWH<=$srcWH)
{
$ftoW=$toW;
$ftoH=$ftoW*($srcH/$srcW);
}
else
{
$ftoH=$toH;
$ftoW=$ftoH*($srcW/$srcH);
}
}
return("<a href='".$nowPath."/".$fileName."' target='_blank'><img src='".$nowPath."/".$fileName."' width='".$ftoW."' height='".$ftoH."' border='0'></a>");
}
function IsImg($fileName)
{
if(ereg("\.(jpg|gif|png)$",$fileName)) return 1;
else return 0;
}
require_once(dirname(__FILE__)."/templets/pic_view.htm");
ClearAllLink();
?>
| zyyhong | trunk/jiaju001/news/lic/pic_view.php | PHP | asf20 | 3,622 |
<?php
header("Content-Type: text/html; charset=utf-8");
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Edit');
if(empty($action)) $action = "";
$needDir = "$cfg_templets_dir|
$cfg_templets_dir/system|
$cfg_templets_dir/plus|
$cfg_templets_dir/default|
$cfg_plus_dir|
$cfg_plus_dir/js|
$cfg_plus_dir/rss|
$cfg_plus_dir/cache|
$cfg_medias_dir|
$cfg_image_dir|
$ddcfg_image_dir|
$cfg_user_dir|
$cfg_soft_dir|
$cfg_other_medias|
$cfg_cmspath/include|
$cfg_cmspath/freelist|
$cfg_cmspath/data/textdata|
$cfg_cmspath/data/sessions|
$cfg_cmspath/data/cache|
$cfg_cmspath/data/cache/user|
$cfg_special|
$cfg_member_dir/templets|
$cfg_cmspath$cfg_arcdir";
header("Content-Type: text/html; charset={$cfg_ver_lang}");
if(($cfg_isSafeMode || $cfg_ftp_mkdir=='Y') && $cfg_ftp_host==""){
echo "由于你的站点的PHP配置存在限制,程序只能通过FTP形式进行目录操作,因此你必须在后台指定FTP相关的变量!<br>";
echo "<a href='sys_info.php'><<修改系统参数>></a>";
exit();
}
if($action==""){
echo "本程序将检测下列目录是否存在,或者是否具有写入的权限,并尝试创建或更改:<br>";
echo "(如果你的主机使用的是windows系统,你无需进行此操作)<br>";
echo "'/include' 目录和 '当前目录/templets' 文件夹请你在FTP中手工更改权限为可写入(0755或0777)<br>";
echo "<pre>".str_replace('|','',$needDir)."</pre>";
echo "<a href='testenv.php?action=ok'><<开始检测>></a> <a href='index_body.php'><<返回主页>></a>";
}else{
$needDirs = explode('|',$needDir);
$needDir = "";
foreach($needDirs as $needDir){
$needDir = trim($needDir);
$needDir = str_replace("\\","/",$needDir);
$needDir = ereg_replace("/{1,}","/",$needDir);
if(CreateDir($needDir)) echo "成功更改或创建:{$needDir} <br>";
else echo "更改或创建目录:{$needDir} <font color='red'>失败!</font> <br>";
}
echo "<br>如果发现更改或创建错误的项目,请<a href='testenv.php?action=ok&play=".time()."'><u>重试</u></a>或手动登陆到FTP更改相关目录的权限为777或666<br>";
echo "<br><a href='index_body.php'><<返回主页>></a>";
CloseFtp();
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/testenv.php | PHP | asf20 | 2,318 |
<?php
require_once(dirname(__FILE__)."/config.php");
header("Content-Type: text/html; charset={$cfg_ver_lang}");
CheckPurview('sys_MakeHtml');
if(empty($dopost)) $dopost = "";
if($dopost=="ok")
{
require_once(dirname(__FILE__)."/../include/inc_arcspec_view.php");
$sp = new SpecView();
$sp->MakeHtml();
$sp->Close();
exit();
}
require_once(dirname(__FILE__)."/templets/makehtml_spec.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/makehtml_spec.php | PHP | asf20 | 439 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
require_once(dirname(__FILE__)."/../include/pub_datalist.php");
require_once(dirname(__FILE__)."/../include/inc_functions.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$sql = "";
$sql = "Select
#@__mynews.aid,#@__mynews.title,#@__mynews.writer,
#@__mynews.senddate,#@__mynews.typeid,
#@__arctype.typename
From #@__mynews
left join #@__arctype on #@__arctype.ID=#@__mynews.typeid
order by aid desc";
$dlist = new DataList();
$dlist->Init();
$dlist->SetSource($sql);
$dlist->SetTemplet(dirname(__FILE__)."/templets/mynews_main.htm");
$dlist->display();
$dlist->Close();
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mynews_main.php | PHP | asf20 | 757 |
<?php
require(dirname(__FILE__)."/config.php");
if(empty($dopost)) $dopost = "";
CheckPurview('temp_One');
//////////////////////////////////////////
if($dopost=="save")
{
require_once(dirname(__FILE__)."/../include/inc_arcpart_view.php");
$uptime = time();
$body = str_replace('"','\\"',$body);
$filename = ereg_replace("^/","",$nfilename);
$inQuery = "
Insert Into #@__sgpage(title,ismake,filename,uptime,body)
Values('$title','$ismake','$filename','$uptime','$body');
";
$dsql = new DedeSql(false);
$dsql->SetQuery($inQuery);
if(!$dsql->ExecuteNoneQuery())
{
$dsql->Close();
ShowMsg("增加页面失败,请检查长相是否有问题!","-1");
exit();
}
$dsql->Close();
$filename = $cfg_basedir.$cfg_cmspath."/".$filename;
if($ismake==1)
{
$pv = new PartView();
$pv->SetTemplet(stripslashes($body),"string");
$pv->SaveToHtml($filename);
$pv->Close();
}
else
{
$fp = fopen($filename,"w") or die("创建:{$filename} 失败,可能是没有权限!");
fwrite($fp,stripslashes($body));
fclose($fp);
}
ShowMsg("成功增加一个页面!","templets_one.php");
exit();
}
require_once(dirname(__FILE__)."/templets/templets_one_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/templets_one_add.php | PHP | asf20 | 1,282 |
<?php
@ob_start();
@set_time_limit(3600);
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Keyword');
if(empty($action))
{
require_once(dirname(__FILE__)."/templets/keywords_fetch.htm");
exit;
}
?> | zyyhong | trunk/jiaju001/news/lic/article_keywords_fetch.php | PHP | asf20 | 231 |
<?php
//------------------------------------
//计划任务验证部份
//------------------------------------
$_checkPage = true;
require_once(dirname(__FILE__)."/task_config.php");
$vars = '';
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From `#@__task`");
if(!is_array($row)||$row['usermtools']!=0||trim($row['rmpwd'])=='')
{
echo '-1';
$dsql->Close();
exit();
}
//检测客户证书是否正确
if( empty($sgcode) || $sgcode != md5(trim($row['rmpwd']).$cfg_cookie_encode))
{
echo '0';
$dsql->Close();
exit();
}
//证书正确时返回 1 ,并把客户证书生成验证文件
else
{
$rmcertip = GetIP();
$sgvalue = md5(trim($row['rmpwd']).$cfg_cookie_encode);
$dsql->Close();
$fp = fopen($cfg_basedir.'/data/rmcert.php','w') or die("-2");
fwrite($fp,'<'.'?php'."\r\n \$cfg_rmcert_value='{$sgvalue}';\r\n \$cfg_rmcert_ip='{$rmcertip}';\r\n ?".'>');
fclose($fp);
echo '1';
exit();
}
?> | zyyhong | trunk/jiaju001/news/lic/task_check.php | PHP | asf20 | 952 |
<?php
require_once(dirname(__FILE__)."/config.php");
if(!isset($cid)) $cid = 0;
if(!isset($keyword)) $keyword = "";
if(!isset($channelid)) $channelid = 0;
if(!isset($arcrank)) $arcrank = "";
if(!isset($adminid)) $adminid = 0;
if(!isset($ismember)) $ismember = 0;
if(!isset($USEListStyle)) $USEListStyle = '';
if(empty($defaultPageSize)) $defaultPageSize = 20;
//检查权限许可,总权限
CheckPurview('a_List,a_AccList,a_MyList');
$cids = '';
//栏目浏览许可
if(TestPurview('a_List')){
;
}
else if(TestPurview('a_AccList'))
{
if($cid==0)
{
$cids = MyCatalogInArr();
if(!empty($cids) && !ereg(',',$cids)){ $cid = $cids; $cids = ''; }
}
else{
CheckCatalog($cid,"你无权浏览非指定栏目的内容!");
}
}else
{
$adminid = $cuserLogin->getUserID();
}
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php");
require_once(dirname(__FILE__)."/inc/inc_list_functions.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
//初始化频道信息
//------------------------------------
$seltypeids = 0;
if(empty($cid) && empty($channelid)) $channelid = 1;
$tl = new TypeLink($cid);
if($cid>0) $channelid = $tl->TypeInfos['channeltype'];
$tables = GetChannelTable($tl->dsql,$channelid,'channel');
if($cid==0){
$row = $tl->dsql->GetOne(" Select typename From #@__channeltype where ID='$channelid' ");
$positionname = '所有'.$row[0].">";
}else{
$positionname = str_replace($cfg_list_symbol,">",$tl->GetPositionName()).">";
$seltypeids = $tl->dsql->GetOne("Select ID,typename,channeltype From #@__arctype where ID='$cid' ",MYSQL_ASSOC);
}
//---------------------------------------
if($channelid<-1) $USEListStyle='infos';
$opall=1;
if(is_array($seltypeids)){
$optionarr = GetTypeidSel('form3','cid','selbt1',0,$seltypeids['ID'],$seltypeids['typename']);
}else{
$optionarr = GetTypeidSel('form3','cid','selbt1',0,0,'请选择栏目...');
}
if($channelid==0) $whereSql = " where a.channel > 0 ";
else $whereSql = " where a.channel = '$channelid' ";
if($ismember==1) $whereSql .= " And a.memberID > 0 ";
if(!empty($memberid)) $whereSql .= " And a.memberID = '$memberid' ";
else $memberid = 0;
if(!empty($cids)){
$whereSql .= " And a.typeid in ($cids) ";
}
if($keyword!=""){
$whereSql .= " And a.title like '%$keyword%' ";
}
if($cid!=0){
$tlinkSql = $tl->GetSunID($cid,"a",0);
$whereSql .= " And $tlinkSql ";
}
if($adminid>0){ $whereSql .= " And a.adminID = '$adminid' "; }
if($arcrank!=""){
$whereSql .= " And a.arcrank = '$arcrank' ";
$CheckUserSend = "<input type='button' onClick=\"location='catalog_do.php?channelid={$channelid}&cid={$cid}&dopost=listArchives&gurl=content_list.php';\" value='所有文档' class='inputbut'>";
}
else{
//$whereSql .= " And a.arcrank >-1 ";
$CheckUserSend = "<input type='button' onClick=\"location='catalog_do.php?channelid={$channelid}&cid={$cid}&dopost=listArchives&arcrank=-1&gurl=content_list.php';\" value='稿件审核' class='inputbut'>";
}
if(empty($orderby)) $orderby = "ID";
$query = "
select a.ID,a.adminID,a.typeid,a.senddate,a.iscommend,a.ismake,a.channel,a.endtime,a.writer,
a.arcrank,a.click,a.title,a.color,a.litpic,a.pubdate,a.adminID,a.memberID,
t.typename,c.typename as channelname,adm.uname as adminname
from `{$tables['maintable']}` a
left join #@__arctype t on t.ID=a.typeid
left join #@__channeltype c on c.ID=a.channel
left join #@__admin adm on adm.ID=a.adminID
$whereSql order by a.{$orderby} desc
";
$dsql = new DedeSql(false);
$dlist = new DataList();
$dlist->pageSize = $defaultPageSize;
$dlist->SetParameter("dopost","listArchives");
$dlist->SetParameter("keyword",$keyword);
$dlist->SetParameter("adminid",$adminid);
$dlist->SetParameter("memberid",$memberid);
$dlist->SetParameter("cid",$cid);
$dlist->SetParameter("arcrank",$arcrank);
$dlist->SetParameter("channelid",$channelid);
$dlist->SetParameter("ismember",$ismember);
$dlist->SetParameter("orderby",$orderby);
$dlist->SetSource($query);
if($USEListStyle=='pic') include_once(dirname(__FILE__)."/templets/content_i_list.htm");
else if($USEListStyle=='infos') include_once(dirname(__FILE__)."/templets/info_list.htm");
else include_once(dirname(__FILE__)."/templets/content_list.htm");
$dlist->Close();
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/content_list.php | PHP | asf20 | 4,424 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('plus_站内新闻发布');
if(empty($dopost)) $dopost = "";
$aid = ereg_replace("[^0-9]","",$aid);
$dsql = new DedeSql(false);
if($dopost=="del")
{
$dsql->SetQuery("Delete From #@__mynews where aid='$aid';");
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功删除一条站内新闻!","mynews_main.php");
exit();
}
else if($dopost=="editsave")
{
$dsql->SetQuery("Update #@__mynews set title='$title',typeid='$typeid',writer='$writer',senddate='".GetMKTime($sdate)."',body='$body' where aid='$aid';");
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功更改一条站内新闻!","mynews_main.php");
exit();
}
$myNews = $dsql->GetOne("Select #@__mynews.*,#@__arctype.typename From #@__mynews left join #@__arctype on #@__arctype.ID=#@__mynews.typeid where #@__mynews.aid='$aid';");
require_once(dirname(__FILE__)."/templets/mynews_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mynews_edit.php | PHP | asf20 | 992 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('member_Pm');
require_once(dirname(__FILE__)."/../include/pub_datalist.php");
require_once(dirname(__FILE__)."/../include/inc_functions.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
if(!isset($folder)) $folder = '';
if(!isset($username)) $username = '';
if(!isset($keyword)) $keyword = '';
if(isset($dopost)){
$ID = ereg_replace("[^0-9]","",$ID);
if($dopost=="del"&&!empty($ID)){
$db = new DedeSql(false);
$db->ExecuteNoneQuery("DELETE FROM #@__pms WHERE pmid='$ID'");
$db->Close();
}
}
$whereSql = "WHERE folder='inbox' AND isadmin='0'";
if(!empty($folder)) $whereSql = "WHERE folder='$folder'";
$postuser = "收件人";
if($folder=="inbox"||$folder=='') $postuser = "发件人";
if(!empty($keyword)) $whereSql .= " AND (subject like '%".$keyword."%' OR message like '%".$keyword."%')";
if(!empty($username)) $whereSql .= " AND msgfrom like '%".$username."%'";
function GetFolders($me){
if($me=="track") return "发件箱";
else if($me=="inbox") return "收件箱";
else if($me=="outbox") return "草搞箱";
}
function IsReader($me){
$me = ereg_replace("[^0-1]","",$me);
if($me) return "<font color='green'>×</font>";
else return "<font color='red'>√</font>";
}
$sql = "SELECT * FROM #@__pms $whereSql ORDER BY dateline desc";
$dlist = new DataList();
$dlist->Init();
$dlist->SetParameter("folder",$folder);
$dlist->SetParameter("username",$username);
$dlist->SetParameter("keyword",$keyword);
$dlist->SetSource($sql);
$dlist->SetTemplet(dirname(__FILE__)."/templets/member_pm.htm");
$dlist->display();
$dlist->Close();
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/member_pm.php | PHP | asf20 | 1,707 |
/*Powered by DEDECMS http://www.dedecms.com
Design & Css By Pig.Z (QQ:7859301)*/
*{
padding:0px;
margin:0px;
}
body{
color:#333333;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
height:100%;
overflow-y:auto;
background:#007400 url(images/left_bg_top.gif) center top repeat-x;
/*
SCROLLBAR-FACE-COLOR:#FF9900;
SCROLLBAR-HIGHLIGHT-COLOR: #FF9900;
SCROLLBAR-SHADOW-COLOR: #FFFF99;
SCROLLBAR-3DLIGHT-COLOR: #FFCC00;
SCROLLBAR-ARROW-COLOR: #FFFFCC;
SCROLLBAR-TRACK-COLOR: #FFFF99;
SCROLLBAR-DARKSHADOW-COLOR: #FFFF99;
*/
}
/*---- link --------------*/
a{
color:#000;
}
a:hover{
color:#F00;
text-decoration:none;
}
/*---- menu style --------------*/
.menu{
width:152px;
margin-left:auto;
margin-right:auto;
}
.menu dl{
margin-top:2px;
}
.menu dl dt{
background:url(images/menu_title_bg.jpg) top left repeat-x;
}
.menu dl dt a{
height:22px;
padding-top:6px;
line-height:19px;
width:152px;
display:block;
color:#FFF;
font-weight:bold;
text-decoration:none;
background:url(images/ico_1.gif) 10px 7px no-repeat;
text-indent:30px;
letter-spacing:2px;
}
.menu dl dt a:hover{
color:#FFFFCC;
}
.menu dl dd ul{
list-style:none;
}
.menu dl dd ul li a{
height:27px;
widows:152px;
display:block;
line-height:27px;
text-indent:28px;
background:#F0F0F0 url(images/ico_2.gif) no-repeat 13px 11px;
border-color:#FFF #545454 #545454 #FFF;
border-style:solid;
border-width:1px;
}
.menu dl dd ul li a:hover{
background:#FFF url(images/ico_3.gif) no-repeat 13px 11px;
color:#FF6600;
font-weight:bold;
} | zyyhong | trunk/jiaju001/news/lic/css_menu.css | CSS | asf20 | 1,630 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('temp_Other');
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__homepageset");
$dsql->Close();
require_once(dirname(__FILE__)."/templets/tag_test.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/tag_test.php | PHP | asf20 | 335 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/templets/makehtml_freelist.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/makehtml_freelist.php | PHP | asf20 | 147 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/inc/inc_admin_channel.php");
if(empty($action)) $action = '';
$dsql = new DedeSql(false);
$mysql_version = $dsql->GetVersion();
$mysql_versions = explode(".",trim($mysql_version));
$mysql_version = $mysql_versions[0].".".$mysql_versions[1];
/*----------------------
function Save()
---------------------*/
if($action=='save')
{
//模型信息
$row = $dsql->GetOne("Select fieldset,addtable,issystem From #@__channeltype where ID='$ID'");
$fieldset = $row['fieldset'];
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
$dtp = new DedeTagParse();
$dtp->SetNameSpace("field","<",">");
$dtp->LoadSource($fieldset);
$trueTable = $row['addtable'];
//修改字段配置信息
$dfvalue = trim($vdefault);
$isnull = ($isnull==1 ? "true" : "false");
$mxlen = $maxlength;
//检测被修改的字段类型
$fieldinfos = GetFieldMake($dtype,$fieldname,$dfvalue,$mxlen);
$ntabsql = $fieldinfos[0];
$buideType = $fieldinfos[1];
$rs = $dsql->ExecuteNoneQuery(" ALTER TABLE `$trueTable` ADD $ntabsql ");
if(!$rs){
$gerr = $dsql->GetError();
ClearAllLink();
ShowMsg("增加字段失败,错误提示为:".$gerr,"javascript:;");
exit();
}
$ok = false;
$fieldname = strtolower($fieldname);
//检测旧配置信息,并替换为新配置
if(is_array($dtp->CTags))
{
//遍历旧配置
foreach($dtp->CTags as $tagid=>$ctag)
{
if($fieldname == strtolower($ctag->GetName()))
{
$dtp->Assign($tagid,stripslashes($fieldstring),false);
$ok = true;
break;
}
}
if($ok) $oksetting = $dtp->GetResultNP();
else $oksetting = $fieldset."\n".stripslashes($fieldstring);
}
//原来的配置为空
else{
$oksetting = $fieldset."\n".stripslashes($fieldstring);
}
$addlist = GetAddFieldList($dtp,$oksetting);
$oksetting = addslashes($oksetting);
$rs = $dsql->ExecuteNoneQuery("Update #@__channeltype set fieldset='$oksetting',listadd='$addlist' where ID='$ID' ");
if(!$rs){
$grr = $dsql->GetError();
ClearAllLink();
ShowMsg("保存节点配置出错!".$grr,"javascript:;");
exit();
}
ClearAllLink();
ShowMsg("成功增加一个字段!","mychannel_edit.php?ID={$ID}&dopost=edit");
exit();
}
/*----------------------
function ShowPage()
---------------------*/
//检测模型相关信息,并初始化相关数据
$row = $dsql->GetOne("Select maintable,addtable From #@__channeltype where ID='$ID'");
$trueTable = $row['addtable'];
$tabsql = "CREATE TABLE IF NOT EXISTS `$trueTable`( `aid` int(11) NOT NULL default '0',\r\n `typeid` int(11) NOT NULL default '0',\r\n ";
if($mysql_version < 4.1)
$tabsql .= " PRIMARY KEY (`aid`), KEY `".$trueTable."_index` (`typeid`)\r\n) TYPE=MyISAM; ";
else
$tabsql .= " PRIMARY KEY (`aid`), KEY `".$trueTable."_index` (`typeid`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=".$cfg_db_language."; ";
$dsql->ExecuteNoneQuery($tabsql);
//检测附加表里含有的字段
$fields = array();
if(empty($row['maintable'])) $row['maintable'] = '#@__archives';
$rs = $dsql->SetQuery("show fields from `{$row['maintable']}`");
$dsql->Execute('a');
while($nrow = $dsql->GetArray('a',MYSQL_ASSOC)){
$fields[strtolower($nrow['Field'])] = 1;
}
$rs = $dsql->SetQuery("show fields from `{$row['addtable']}`");
$dsql->Execute('a');
while($nrow = $dsql->GetArray('a',MYSQL_ASSOC)){
if(!isset($fields[strtolower($nrow['Field'])])) $fields[strtolower($nrow['Field'])] = 1;
}
$f = '';
foreach($fields as $k=>$v){
$f .= ($f=='' ? $k : ' '.$k);
}
require_once(dirname(__FILE__)."/templets/mychannel_field_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mychannel_field_add.php | PHP | asf20 | 3,798 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/templets/member_card_make.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/member_card_make.php | PHP | asf20 | 142 |
<!--
function $Nav(){
if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE';
else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF';
else return "OT";
}
function $Obj(objname){
return document.getElementById(objname);
}
function ShowColor(){
var fcolor=showModalDialog("img/color.htm?ok",false,"dialogWidth:107px;dialogHeight:137px;status:0;dialogTop:"+(window.event.clientY+120)+";dialogLeft:"+(window.event.clientX));
if(fcolor!=null && fcolor!="undefined") document.form1.color.value = fcolor;
}
function ShowHide(objname){
var obj = $Obj(objname);
if(obj.style.display == "block" || obj.style.display == ""){ obj.style.display = "none"; }
else{ obj.style.display = "block"; }
}
function ShowHide2(objname){
var obj = $Obj(objname);
if(obj.style.display != 'block'){ obj.style.display = 'block' }
else{ obj.style.display = 'none'; }
}
function ShowObj(objname){
var obj = $Obj(objname);
obj.style.display = "block";
}
function HideObj(objname){
var obj = $Obj(objname);
obj.style.display = "none";
}
function ShowItem1(){
ShowObj('head1'); ShowObj('needset'); HideObj('head2'); HideObj('adset');
}
function ShowItem2(){
ShowObj('head2'); ShowObj('adset'); HideObj('head1'); HideObj('needset');
}
function SeePic(img,f){
if ( f.value != "" ) { img.src = f.value; }
}
function SelectArcListA(fname){
var posLeft = 10;
var posTop = 10;
window.open("content_select_list.php?f="+fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left="+posLeft+", top="+posTop);
}
function SelectArcListB(fname,addvar){
var posLeft = 10;
var posTop = 10;
window.open("content_select_list.php?f="+fname+addvar, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left="+posLeft+", top="+posTop);
}
function SelectFlash(){
if($Nav()=='IE'){ var posLeft = window.event.clientX-300; var posTop = window.event.clientY; }
else{ var posLeft = 100; var posTop = 100; }
window.open("../include/dialog/select_media.php?f=form1.flashurl", "popUpFlashWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left="+posLeft+", top="+posTop);
}
function SelectMedia(fname){
if($Nav()=='IE'){ var posLeft = window.event.clientX-200; var posTop = window.event.clientY; }
else{ var posLeft = 100;var posTop = 100; }
window.open("../include/dialog/select_media.php?f="+fname, "popUpFlashWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left="+posLeft+", top="+posTop);
}
function SelectSoft(fname){
if($Nav()=='IE'){ var posLeft = window.event.clientX-200; var posTop = window.event.clientY-50; }
else{ var posLeft = 100; var posTop = 100; }
window.open("../include/dialog/select_soft.php?f="+fname, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
function SelectImage(fname,stype){
if($Nav()=='IE'){ var posLeft = window.event.clientX-100; var posTop = window.event.clientY; }
else{ var posLeft = 100; var posTop = 100; }
if(!fname) fname = 'form1.picname';
if(!stype) stype = '';
window.open("../include/dialog/select_images.php?f="+fname+"&imgstick="+stype, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
function SelectCatalog(fname,vname,bt,channelid,pos,opall){
if($Nav()=='IE'){ var posLeft = window.event.clientX-100; var posTop = window.event.clientY; }
else{ var posLeft = 100; var posTop = 100; }
if(!fname) fname = 'form1';
if(!vname) vname = 'typeid';
if(!bt) vname = 'selct';
window.open(pos+"catalog_tree.php?f="+fname+"&opall="+opall+"&v="+vname+"&bt="+bt+"&c="+channelid, "popUpSelCWin", "scrollbars=yes,resizable=yes,statebar=no,width=450,height=300,left="+posLeft+", top="+posTop);
}
function SelectImageN(fname,stype,vname){
if($Nav()=='IE'){ var posLeft = window.event.clientX-100; var posTop = window.event.clientY; }
else{ var posLeft = 100; var posTop = 100; }
if(!fname) fname = 'form1.picname';
if(!stype) stype = '';
window.open("../include/dialog/select_images.php?f="+fname+"&imgstick="+stype+"&v="+vname, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
}
function SelectKeywords(f){
if($Nav()=='IE'){ var posLeft = window.event.clientX-350; var posTop = window.event.clientY-200; }
else{ var posLeft = 100; var posTop = 100; }
window.open("article_keywords_select.php?f="+f, "popUpkwWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=450,left="+posLeft+", top="+posTop);
}
function InitPage(){
var selsource = $Obj('selsource');
var selwriter = $Obj('selwriter');
var titlechange = $Obj('title');
if(selsource){ selsource.onmousedown=function(e){ SelectSource(e); } }
if(selwriter){ selwriter.onmousedown=function(e){ SelectWriter(e); } }
if(titlechange){ titlechange.onchange=function(e){ TestHasTitle(e); } }
}
function OpenMyWin(surl){
window.open(surl, "popUpMyWin", "scrollbars=yes,resizable=yes,statebar=no,width=500,height=350,left=200, top=100");
}
function PutSource(str){
var osource = $Obj('source');
if(osource) osource.value = str;
}
function PutWriter(str){
var owriter = $Obj('writer');
if(owriter) owriter.value = str;
}
function SelectSource(e){
LoadNewDiv(e,'article_select_sw.php?t=source&k=8','_mysource',"dlg");
}
function TestHasTitle(e){
LoadNewDiv2(e,'article_test_title.php?t='+$Obj('title').value,'_mytitle',"dlgTesttitle");
}
function SelectWriter(e){
LoadNewDiv(e,'article_select_sw.php?t=writer&k=8','_mywriter',"dlg");
}
function LoadNewDiv(e,surl,oname,dlgcls){
if($Nav()=='IE'){ var posLeft = window.event.clientX-20; var posTop = window.event.clientY-20; }
else{ var posLeft = e.pageX-20; var posTop = e.pageY-20; }
var newobj = $Obj(oname);
if(!newobj){
newobj = document.createElement("DIV");
newobj.id = oname;
newobj.style.position='absolute';
newobj.className = dlgcls;
newobj.style.top = posTop;
newobj.style.left = posLeft;
document.body.appendChild(newobj);
}
else{
newobj.style.display = "block";
}
if(newobj.innerHTML.length<10){
var myajax = new DedeAjax(newobj);
myajax.SendGet2(surl);
DedeXHTTP = null;
}
}
function LoadNewDiv2(e,surl,oname,dlgcls){
if($Nav()=='IE'){ var posLeft = window.event.clientX-20; var posTop = window.event.clientY-20; }
else{ var posLeft = e.pageX-20; var posTop = e.pageY-20; }
var newobj = $Obj(oname);
if(!newobj){
newobj = document.createElement("DIV");
newobj.id = oname;
newobj.style.position='absolute';
newobj.className = dlgcls;
newobj.style.top = posTop;
newobj.style.left = posLeft;
newobj.style.display = 'none';
document.body.appendChild(newobj);
}
newobj.innerHTML = '';
var myajax = new DedeAjax(newobj);
myajax.SendGet2(surl);
if(newobj.innerHTML=='') newobj.style.display = "none";
else newobj.style.display = "block";
DedeXHTTP = null;
}
function ShowUrlTr(){
var jumpTest = $Obj('isjump');
var jtr = $Obj('redirecturltr');
if(jumpTest.checked) jtr.style.display = "block";
else jtr.style.display = "none";
}
function ShowPicTr(){
var picTest = $Obj('ispic');
var jtr = $Obj('pictable');
if(picTest.checked) jtr.style.display = "block";
else jtr.style.display = "none";
}
function ShowUrlTrEdit(){
ShowUrlTr();
var jumpTest = $Obj('isjump');
var rurl = $Obj('redirecturl');
if(!jumpTest.checked) rurl.value="";
}
function CkRemote(ckname,fname){
var ckBox = $Obj(ckname);
var fileBox = $Obj(fname);
if(ckBox.checked){
fileBox.style.display = 'none';
}else{
fileBox.style.display = 'block';
}
}
function selNext(oj,v)
{
newonj = oj.options;
while(newonj.length>0)
{ newonj.remove(0); }
clear(oj);
if(v!=0)
{
aOption = document.createElement("OPTION");
aOption.text="请选择";
aOption.value="0";
oj.options.add(aOption);
aOption = document.createElement("OPTION");
aOption.text="-不限-";
aOption.value="0";
oj.options.add(aOption);
}
else
{
aOption = document.createElement("OPTION");
aOption.text="-不限-";
aOption.value="0";
oj.options.add(aOption);
return;
}
cityarr = barr=eval("B"+v);
for(i=0;i<cityarr.length;i++)
{
tlines = cityarr[i].split("~");
aOption = document.createElement("OPTION");
aOption.text=tlines[1];
aOption.value=tlines[0];
oj.options.add(aOption);
}
}
function selNextDf(oj,v,fk,fv)
{
newonj = oj.options;
while(newonj.length>0)
{ newonj.remove(0); }
clear(oj);
if(v==0)
{
aOption = document.createElement("OPTION");
aOption.text="请选择";
aOption.value="0";
oj.options.add(aOption);
return;
}
else
{
if(fk==0) fv = '不限';
aOption = document.createElement("OPTION");
aOption.text = fv;
aOption.value = fk;
oj.options.add(aOption);
}
cityarr = barr=eval("B"+v);
for(i=0;i<cityarr.length;i++)
{
tlines = cityarr[i].split("~");
aOption = document.createElement("OPTION");
aOption.text=tlines[1];
aOption.value=tlines[0];
oj.options.add(aOption);
}
}
//设置省份选项
function selTop(oj)
{
clear(oj);
for(i=0;i<Ap.length;i++)
{
itvalue = Ap[i];
tlines = itvalue.split("~");
aOption = document.createElement("OPTION");
aOption.text=tlines[1];
aOption.value=tlines[0];
oj.options.add(aOption);
}
}
//清除旧对象
function clear(o)
{
l=o.length;
for (i = 0; i< l; i++){
o.options[1]=null;
}
}
//图集,显示与隐藏zip文件选项
function ShowZipField(formitem,zipid,upid)
{
if(formitem.checked){
$Obj(zipid).style.display = 'block';
$Obj(upid).style.display = 'none';
}else
{
$Obj(zipid).style.display = 'none';
$Obj(upid).style.display = 'block';
}
}
//图集,显示与隐藏Html编辑框
function ShowHtmlField(formitem,htmlid,upid)
{
if($Nav()!="IE"){
alert("该方法不适用于非IE浏览器!");
return ;
}
if(formitem.checked){
$Obj(htmlid).style.display = 'block';
$Obj(upid).style.display = 'none';
}else
{
$Obj(htmlid).style.display = 'none';
$Obj(upid).style.display = 'block';
}
}
//检查是否含有非指定的字符
function HasNotVd(str)
{
if(str=='') return false;
newstr = str.replace(/[^0-9,]/g,'');
if(newstr!=str) return true;
else return false;
}
//提交表单检查
//---------------------
function CS_ArchivesAdd()
{
var tf = document.form1;
if(tf.title.value==""){
alert("文档标题不能为空!");
return false;
}
if(tf.likeid.value!="" && HasNotVd(tf.likeid.value)){
alert("相关文档必须填写正确的ID,如ID1,ID2...");
return false;
}
if(tf.typeid.value==0){
alert("请选择档案的主类别!");
return false;
}
return true;
}
function CS_ArchivesEdit()
{
var tf = document.form1;
if(tf.title.value==""){
alert("文档标题不能为空!");
return false;
}
if(tf.likeid.value!="" && HasNotVd(tf.likeid.value)){
alert("相关文档必须填写正确的ID,如ID1,ID2...");
return false;
}
if(tf.typeid.value==0){
alert("请选择档案的主类别!");
return false;
}
return true;
}
--> | zyyhong | trunk/jiaju001/news/lic/main.js | JavaScript | asf20 | 11,574 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Data');
if(empty($action)) $action = '';
/*-------------------------------
//列出数据库表里的字段
function __getfields()
--------------------------------*/
if($action=='getfields'){
AjaxHead();
$dsql = new DedeSql(false);
if(!$dsql->linkID){
echo "<font color='red'>连接数据源的数据库失败!</font><br>";
echo $qbutton;
exit();
}
$dsql->GetTableFields($exptable);
echo "<div style='border:1px solid #ababab;background-color:#FEFFF0;margin-top:6px;padding:3px;line-height:160%'>";
echo "表(".$exptable.")含有的字段:<br>";
while($row = $dsql->GetFieldObject()){
echo "<a href=\"javascript:pf('{$row->name}')\"><u>".$row->name."</u></a>\r\n";
}
echo "</div>";
$dsql->Close();
exit();
}
/*-------------------------------
//保存用户设置,清空会员数据
function __Apply()
--------------------------------*/
else if($action=='apply'){
if(empty($validate)) $validate=="";
else $validate = strtolower($validate);
$svali = GetCkVdValue();
if($validate=="" || $validate!=$svali){
ShowMsg("安全确认码不正确!","javascript:;");
exit();
}
if($exptable==''||$rpfield==''){
ShowMsg("请指定数据表和字段!","javascript:;");
exit();
}
if($rpstring==''){
ShowMsg("请指定被替换内容!","javascript:;");
exit();
}
$dsql = new DedeSql(false);
if($rptype=='replace'){
if(!empty($condition)) $condition = " where $condition ";
else $condition = "";
$rs = $dsql->ExecuteNoneQuery("Update $exptable set $rpfield=Replace($rpfield,'$rpstring','$tostring') $condition ");
$dsql->executenonequery("OPTIMIZE TABLE `$exptable`");
$dsql->Close();
if($rs) ShowMsg("成功完成数据替换!","javascript:;");
else ShowMsg("数据替换失败!","javascript:;");
}else
{
if(!empty($condition)) $condition = " And $condition ";
else $condition = "";
$rpstring = stripslashes($rpstring);
$rpstring2 = str_replace("\\","\\\\",$rpstring);
$rpstring2 = str_replace("'","\\'",$rpstring2);
$dsql->SetQuery("Select $keyfield,$rpfield From $exptable where $rpfield REGEXP '$rpstring2' $condition ");
$dsql->Execute();
$tt = $dsql->GetTotalRow();
if($tt==0){
$dsql->Close();
ShowMsg("根据你指定的正则,找不到任何东西!","javascript:;");
exit();
}
$oo = 0;
while($row = $dsql->GetArray()){
$kid = $row[$keyfield];
$rpf = eregi_replace($rpstring,$tostring,$row[$rpfield]);
$rs = $dsql->ExecuteNoneQuery("Update $exptable set $rpfield='$rpf' where $keyfield='$kid' ");
if($rs) $oo++;
}
$dsql->executenonequery("OPTIMIZE TABLE `$exptable`");
$dsql->close;
ShowMsg("共找到 $tt 条记录,成功替换了 $oo 条!","javascript:;");
exit();
}
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/sys_data_replace_action.php | PHP | asf20 | 2,875 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
CheckPurview('c_Edit');
if(empty($dopost)) $dopost="";
$isdefault = (empty($isdefault) ? '0' : $isdefault);
$ID = (empty($ID) ? '' : intval($ID));
/*----------------
function __Show()
-----------------*/
if($dopost=="show")
{
$dsql = new DedeSql(-100);
$dsql->ExecuteNoneQuery("update #@__channeltype set isshow=1 where ID='$ID'");
$dsql->Close();
ShowMsg("操作成功!","mychannel_main.php");
exit();
}
/*----------------
function __Hide()
-----------------*/
else if($dopost=="hide")
{
$dsql = new DedeSql(-100);
$dsql->ExecuteNoneQuery("update #@__channeltype set isshow=0 where ID='$ID'");
$dsql->Close();
ShowMsg("操作成功!","mychannel_main.php");
exit();
}
/*----------------
function __SaveEdit()
-----------------*/
else if($dopost=="save")
{
$query = "
update `#@__channeltype` set
typename = '$typename',
addtable = '$addtable',
addcon = '$addcon',
mancon = '$mancon',
editcon = '$editcon',
useraddcon = '$useraddcon',
usermancon = '$usermancon',
usereditcon = '$usereditcon',
issend = '$issend',
arcsta = '$arcsta',
sendrank = '$sendrank',
sendmember = '$sendmember',
issystem = '$issystem',
isdefault = '$isdefault'
where ID='$ID'
";
$dsql = new DedeSql(-100);
$trueTable = str_replace("#@__",$cfg_dbprefix,$addtable);
if(!$dsql->IsTable($trueTable)){
$dsql->Close();
ShowMsg("系统找不到你所指定的表 $trueTable !","-1");
exit();
}
$dsql->ExecuteNoneQuery($query);
if($isdefault>0){
$dsql->ExecuteNoneQuery("update `#@__channeltype` set isdefault=0 where ID<>'$ID' ");
}
$dsql->Close();
ShowMsg("成功更改一个模型!","mychannel_main.php");
exit();
}
/*----------------
function __Copy()
-----------------*/
else if($dopost=="copy")
{
if($ID==-1){
ShowMsg("专题模型不支持复制!","-1");
exit();
}
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select * From #@__channeltype where ID='$ID'");
if($row['ID']>-1){
$nrow = $dsql->GetOne("Select ID From #@__channeltype order by ID desc limit 0,1 ");
$newid = $nrow['ID']+1;
if($newid<10) $newid = $newid+10;
$idname = $newid;
}else
{
$nrow = $dsql->GetOne("Select ID From #@__channeltype order by ID asc limit 0,1 ");
$newid = $nrow['ID']-1;
if($newid<-10) $newid = $newid-10;
$idname = 'w'.($newid * -1);
}
$row = $dsql->GetOne("Select * From #@__channeltype where ID='$ID'");
$dsql->Close();
if($row['maintable']=='') $row['maintable'] = '#@__archives';
$wintitle = "频道管理-模型复制";
$wecome_info = "<a href='mychannel_main.php'>频道管理</a> - 模型复制";
$win = new OxWindow();
$win->Init("mychannel_edit.php","js/blank.js","post");
$win->AddTitle("被复制频道: [<font color='red'>".$row['typename']."</font>]");
$win->AddHidden("cid",$ID);
$win->AddHidden("dopost",'savecopy');
$msg = "
<table width='460' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='170' height='24' align='center'>新频道ID:</td>
<td width='230'><input name='newid' type='text' id='newid' size='6' value='{$newid}' /></td>
</tr>
<tr>
<td height='24' align='center'>新频道名称:</td>
<td><input name='newtypename' type='text' id='newtypename' value='{$row['typename']}{$idname}' style='width:250px' /></td>
</tr>
<tr>
<td height='24' align='center'>新频道标识:</td>
<td><input name='newnid' type='text' id='newnid' value='{$row['nid']}{$idname}' style='width:250px' /></td>
</tr>
<tr>
<td height='24' align='center'>新索引表:</td>
<td><input name='newmaintable' type='text' id='newmaintable' value='{$row['maintable']}{$idname}' style='width:250px' /></td>
</tr>
<tr>
<td height='24' align='center'>新附加表:</td>
<td><input name='newaddtable' type='text' id='newaddtable' value='{$row['addtable']}{$idname}' style='width:250px' /></td>
</tr>
<tr>
<td height='24' align='center'>复制模板:</td>
<td>
<input name='copytemplet' type='radio' id='copytemplet' value='1' class='np' checked='checked' /> 复制
<input name='copytemplet' type='radio' id='copytemplet' class='np' value='0' /> 不复制
</td>
</tr>
</table>
";
$win->AddMsgItem("<div style='padding:20px;line-height:300%'>$msg</div>");
$winform = $win->GetWindow("ok","");
$win->Display();
exit();
}
/*----------------
function __SaveCopy()
-----------------*/
else if($dopost=="savecopy")
{
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select * From #@__channeltype where ID='$cid' ", MYSQL_ASSOC);
foreach($row as $k=>$v) ${strtolower($k)} = addslashes($v);
$inquery = " INSERT INTO `#@__channeltype`(`ID` , `nid` , `typename` , `maintable` , `addtable` , `addcon` ,
`mancon` , `editcon` , `useraddcon` , `usermancon` , `usereditcon` , `fieldset` , `listadd` ,
`issystem` , `isshow` , `issend` , `arcsta` , `sendrank` , `sendmember`)
VALUES('$newid' , '$newnid' , '$newtypename' , '$newmaintable' , '$newaddtable' , '$addcon' ,
'$mancon' , '$editcon' , '$useraddcon' , '$usermancon' , '$usereditcon' , '$fieldset' , '$listadd' ,
'0' , '$isshow' , '$issend' , '$arcsta' , '$sendrank' , '$sendmember');
";
$mysql_version = $dsql->GetVersion();
$mysql_versions = explode(".",trim($mysql_version));
$mysql_version = $mysql_versions[0].".".$mysql_versions[1];
$narrs1 = array('maintalbe'=>$newmaintable,'addtalbe'=>$newaddtable);
$narrs2 = array('maintalbe'=>$maintable,'addtalbe'=>$addtable);
foreach($narrs1 as $f=>$fn)
{
if(!$dsql->IsTable($fn))
{
$tb = $narrs2[$f];
$dsql->SetQuery("SHOW CREATE TABLE {$dsql->dbName}.{$tb}");
$dsql->Execute();
$row = $dsql->GetArray();
/*
//根据数据库版本备份表结构,由于主表取消了自动递增字段,因此可以省略此选项
$eng1 = "ENGINE=MyISAM DEFAULT CHARSET=".$cfg_db_language;
$eng2 = "ENGINE=MyISAM AUTO_INCREMENT=([0-9]{1,}) DEFAULT CHARSET=".$cfg_db_language;
if($datatype==4.0 && $mysql_version > 4.0){
$tableStruct = eregi_replace($eng1,"TYPE=MyISAM",$row[1]);
$tableStruct = eregi_replace($eng2,"TYPE=MyISAM",$row[1]);
}
else if($datatype==4.1 && $mysql_version < 4.1){
$tableStruct = eregi_replace("TYPE=MyISAM",$eng1,$row[1]);
}else{
*/
$tableStruct = $row[1];
$tb = str_replace('#@__',$cfg_dbprefix,$tb);
$tableStruct = preg_replace("/CREATE TABLE `$tb`/iU","CREATE TABLE `$fn`",$tableStruct);
$dsql->ExecuteNoneQuery($tableStruct);
}
}
if($copytemplet==1){
$tmpletdir = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style;
@copy("{$tmpletdir}/article_{$nid}.htm","{$tmpletdir}/article_{$newnid}.htm");
@copy("{$tmpletdir}/list_{$nid}.htm","{$tmpletdir}/list_{$newnid}.htm");
@copy("{$tmpletdir}/index_{$nid}.htm","{$tmpletdir}/index_{$newnid}.htm");
}
$rs = $dsql->ExecuteNoneQuery($inquery);
if($rs)
{
ShowMsg("成功复制模型,现转到详细参数页... ","mychannel_edit.php?ID={$newid}&dopost=edit");
$dsql->Close();
exit();
}
else
{
$errv = $dsql->GetError();
ShowMsg("系统出错,请把错误代码发送到官方论坛,以检查原因!<br /> 错误代码:mychannel_edit.php?dopost=savecopy $errv","javascript:;");
$dsql->Close();
exit();
}
}
/*----------------
function __GetTemplets()
-----------------*/
else if($dopost=="gettemplets")
{
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select * From #@__channeltype where ID='$ID'");
$dsql->Close();
$wintitle = "频道管理-查看模板";
$wecome_info = "<a href='mychannel_main.php'>频道管理</a>:查看模板";
$win = new OxWindow();
$win->Init("","js/blank.js","");
$win->AddTitle("频道:(".$row['typename'].")默认模板文件说明:");
$msg = "
文档模板:{$cfg_templets_dir}/{$cfg_df_style}/article_{$row['nid']}.htm
<a href='file_manage_view.php?fmdo=edit&filename=article_{$row['nid']}.htm&activepath=".urlencode("{$cfg_templets_dir}/{$cfg_df_style}")."'>[修改]</a><br/>
列表模板:{$cfg_templets_dir}/{$cfg_df_style}/list_{$row['nid']}.htm
<a href='file_manage_view.php?fmdo=edit&filename=list_{$row['nid']}.htm&activepath=".urlencode("{$cfg_templets_dir}/{$cfg_df_style}")."'>[修改]</a>
<br/>
频道封面模板:{$cfg_templets_dir}/{$cfg_df_style}/index_{$row['nid']}.htm
<a href='file_manage_view.php?fmdo=edit&filename=index_{$row['nid']}.htm&activepath=".urlencode("{$cfg_templets_dir}/{$cfg_df_style}")."'>[修改]</a>
";
$win->AddMsgItem("<div style='padding:20px;line-height:300%'>$msg</div>");
$winform = $win->GetWindow("hand","");
$win->Display();
exit();
}
/*----------------
function __Delete()
-----------------*/
else if($dopost=="delete")
{
@set_time_limit(0);
CheckPurview('c_Del');
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select * From #@__channeltype where ID='$ID'");
if($row['issystem'] == 1)
{
$dsql->Close();
ShowMsg("系统模型不允许删除!","mychannel_main.php");
exit();
}
if(empty($job)) $job="";
if($job=="") //确认提示
{
$dsql->Close();
$wintitle = "频道管理-删除模型";
$wecome_info = "<a href='mychannel_main.php'>频道管理</a>::删除模型";
$win = new OxWindow();
$win->Init("mychannel_edit.php","js/blank.js","POST");
$win->AddHidden("job","yes");
$win->AddHidden("dopost",$dopost);
$win->AddHidden("ID",$ID);
$win->AddTitle("你确实要删除 (".$row['typename'].") 这个频道?");
$winform = $win->GetWindow("ok");
$win->Display();
exit();
}
else if($job=="yes") //操作
{
require_once(dirname(__FILE__)."/../include/inc_typeunit_admin.php");
$dsql = new DedeSql(false);
$myrow = $dsql->GetOne("Select maintable,addtable From `#@__channeltype` where ID='$ID'",MYSQL_ASSOC);
if(!is_array($myrow)){
$dsql->Close();
ShowMsg("你所指定的频道信息不存在!","-1");
exit();
}
if($myrow['maintable']=='') $myrow['maintable'] = '#@__archives';
//检查频道的表是否独占数据表
$maintable = str_replace($cfg_dbprefix,'',str_replace('#@__',$cfg_dbprefix,$myrow['maintable']));
$addtable = str_replace($cfg_dbprefix,'',str_replace('#@__',$cfg_dbprefix,$myrow['addtable']));
$row = $dsql->GetOne("Select count(ID) as dd From `#@__channeltype` where maintable like '{$cfg_dbprefix}{$maintable}' Or maintable like CONCAT('#','@','__','$maintable') ; ");
$isExclusive1 = ($row['dd']>1 ? 0 : 1 );
$row = $dsql->GetOne("Select count(ID) as dd From `#@__channeltype` where addtable like '{$cfg_dbprefix}{$addtable}' Or addtable like CONCAT('#','@','__','$addtable') ; ");
$isExclusive2 = ($row['dd']>1 ? 0 : 1 );
//获取与频道关连的所有栏目ID
$tids = '';
$dsql->Execute('qm',"Select ID From `#@__arctype` where channeltype='$ID'");
while($row = $dsql->GetArray('qm')){
$tids .= ($tids=='' ? $row['ID'] : ','.$row['ID']);
}
//删除主表
if($isExclusive1==1) $dsql->ExecuteNoneQuery("DROP TABLE IF EXISTS `{$cfg_dbprefix}{$maintable}`;");
else
{
if($tids!=''){
$dsql->ExecuteNoneQuery("Delete From `{$myrow['maintable']}` where typeid in($tids); ");
$dsql->ExecuteNoneQuery("update `{$myrow['maintable']}` set typeid2=0 where typeid2 in ($tids); ");
}
}
//删除附加表
if($isExclusive2==1) $dsql->ExecuteNoneQuery("DROP TABLE IF EXISTS `{$cfg_dbprefix}{$addtable}`;");
else
{
if($tids!='' && $myrow['addtable']!=''){
$dsql->ExecuteNoneQuery("Delete From `{$myrow['addtable']}` where typeid in ($tids); ");
}
}
//删除其它数据
if($tids!='')
{
$dsql->ExecuteNoneQuery("Delete From `#@__spec` where typeid in ($tids); ");
$dsql->ExecuteNoneQuery("Delete From `#@__feedback` where typeid in ($tids); ");
$dsql->ExecuteNoneQuery("Delete From `#@__arctype` where ID in ($tids); ");
$dsql->ExecuteNoneQuery("Delete From `#@__full_search` where typeid in ($tids); ");
}
//删除频道配置信息
$dsql->ExecuteNoneQuery("Delete From `#@__channeltype` where ID='$ID'");
//更新栏目缓存
UpDateCatCache($dsql);
$dsql->Close();
ShowMsg("成功删除一个模型!","mychannel_main.php");
exit();
}
}
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select * From #@__channeltype where ID='$ID'");
require_once(dirname(__FILE__)."/templets/mychannel_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mychannel_edit.php | PHP | asf20 | 13,076 |
<?php
require(dirname(__FILE__)."/config.php");
CheckPurview('plus_友情链接模块');
$dsql = new DedeSql(false);
if(empty($dopost)) $dopost="";
if($dopost=="add")
{
$dtime = strftime("%Y-%m-%d %H:%M:%S",time());
if(is_uploaded_file($logoimg))
{
$names = split("\.",$logoimg_name);
$shortname = ".".$names[count($names)-1];
$filename = strftime("%Y%m%d%H%M%S",time()).mt_rand(1000,9999).$shortname;
$imgurl = $cfg_medias_dir."/flink";
if(!is_dir($cfg_basedir.$imgurl)){
MkdirAll($cfg_basedir.$imgurl,$GLOBALS['cfg_dir_purview']);
CloseFtp();
}
$imgurl = $imgurl."/".$filename;
move_uploaded_file($logoimg,$cfg_basedir.$imgurl) or die("复制文件到:".$cfg_basedir.$imgurl."失败");
@unlink($logoimg);
}
else
{ $imgurl = $logo; }
$query = "Insert Into #@__flink(sortrank,url,webname,logo,msg,email,typeid,dtime,ischeck)
Values('$sortrank','$url','$webname','$imgurl','$msg','$email',$typeid,'$dtime','$ischeck')";
$dsql->SetQuery($query);
$dsql->ExecuteNoneQuery();
if(!empty($_COOKIE['ENV_GOBACK_URL'])) $burl = $_COOKIE['ENV_GOBACK_URL'];
else $burl = "friendlink_main.php";
$dsql->Close();
ShowMsg("成功增加一个链接!",$burl,0,500);
exit();
}
require_once(dirname(__FILE__)."/templets/friendlink_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/friendlink_add.php | PHP | asf20 | 1,383 |
<?php
require_once("config.php");
CheckPurview('t_Move');
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
if(empty($typeid)) $typeid="";
if(empty($job)) $job="movelist";
$typeid = ereg_replace("[^0-9]","",$typeid);
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select reID,typename,channeltype From #@__arctype where ID='$typeid'");
$typename = $row['typename'];
$reID = $row['reID'];
$channelid = $row['channeltype'];
//移动栏目
//------------------
if($job=="moveok")
{
if($typeid==$movetype)
{
$dsql->Close();
ShowMsg("移对对象和目标位置相同!","catalog_main.php");
exit();
}
if(IsParent($movetype,$typeid,$dsql))
{
$dsql->Close();
ShowMsg("不能从父类移动到子类!","catalog_main.php");
exit();
}
$dsql->SetQuery("Update #@__arctype set reID='$movetype' where ID='$typeid'");
$dsql->ExecuteNoneQuery();
$dsql->Close();
//更新树形菜单
$rndtime = time();
$uptreejs = "<script language='javascript'>
if(window.navigator.userAgent.indexOf('MSIE')>=1){
if(top.document.frames.menu.location.href.indexOf('catalog_menu.php')>=1)
{ top.document.frames.menu.location = 'catalog_menu.php?$rndtime'; }
}else{
if(top.document.getElementById('menu').src.indexOf('catalog_menu.php')>=1)
{ top.document.getElementById('menu').src = 'catalog_menu.php?$rndtime'; }
}
</script>";
echo $uptreejs;
ShowMsg("成功移动目录!","catalog_main.php");
exit();
}
function IsParent($myid,$topid,$dsql)
{
$row = $dsql->GetOne("select ID,reID from #@__arctype where ID='$myid'");
if($row['reID']==$topid) return true;
else if($row['reID']==0) return false;
else return IsParent($row['reID'],$topid,$dsql);
}
///////////////////////////////////////////////////
$tl = new TypeLink($typeid);
$typeOptions = $tl->GetOptionArray(0,0,$channelid);
$tl->Close();
require_once(dirname(__FILE__)."/templets/catalog_move.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/catalog_move.php | PHP | asf20 | 2,006 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Keyword');
empty($_COOKIE['ENV_GOBACK_URL']) ? $ENV_GOBACK_URL = "article_keywords_main.php" : $ENV_GOBACK_URL=$_COOKIE['ENV_GOBACK_URL'];
if(!isset($aids)){
ShowMsg("你没有选择要更改的东东!",$ENV_GOBACK_URL);
exit();
}
$dsql = new DedeSql(false);
foreach($aids as $aid)
{
$rpurl = ${'rpurl_'.$aid};
$rpurlold = ${'rpurlold_'.$aid};
$keyword = ${'keyword_'.$aid};
//删除项目
if(!empty(${'isdel_'.$aid}))
{
$query = "update #@__full_search set keywords = Replace(keywords,' $keyword ',' ')";
$dsql->SetQuery($query);
$dsql->ExecuteNoneQuery();
$dsql->SetQuery("Delete From #@__keywords where aid='$aid'");
$dsql->ExecuteNoneQuery();
continue;
}
//禁用项目
$staold = ${'staold_'.$aid};
if(!empty(${'isnouse_'.$aid})) $sta = 0;
else $sta = 1;
if($staold!=$sta)
{
$query1 = "update #@__keywords set sta='$sta',rpurl='$rpurl' where aid='$aid' ";
$dsql->SetQuery($query1);
$dsql->ExecuteNoneQuery();
if($sta==0)
{
$query2 = "update #@__full_search set keywords = Replace(keywords,' $keyword ',' ')";
$dsql->SetQuery($query2);
$dsql->ExecuteNoneQuery();
}
continue;
}
//更新链接网址
if($rpurl!=$rpurlold)
{
$query1 = "update #@__keywords set rpurl='$rpurl' where aid='$aid' ";
$dsql->SetQuery($query1);
$dsql->ExecuteNoneQuery();
}
}
ShowMsg("完成指定的更改!",$ENV_GOBACK_URL);
exit();
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/article_keywords_saveall.php | PHP | asf20 | 1,550 |
<?php
require_once(dirname(__FILE__)."/config.php");
empty($_COOKIE['ENV_GOBACK_URL']) ? $ENV_GOBACK_URL = "-1" : $ENV_GOBACK_URL=$_COOKIE['ENV_GOBACK_URL'];
CheckPurview('sys_Keyword');
$keyword = trim($keyword);
$rank = ereg_replace("[^0-9]","",$rank);
if(ereg(" ",$keyword)||$keyword=="")
{
ShowMsg("关键字不能带有空格或为空!",-1);
exit();
}
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__keywords where keyword like '$keyword'");
if(is_array($row))
{
$dsql->Close();
ShowMsg("关键字已存在库中!","-1");
exit();
}
$inquery = "
INSERT INTO #@__keywords(keyword,rank,sta,rpurl) VALUES ('$keyword','$rank','1','$rpurl');
";
$dsql->SetQuery($inquery);
$dsql->ExecuteNoneQuery();
ClearAllLink();
ShowMsg("成功增加一个关键字!",$ENV_GOBACK_URL);
?> | zyyhong | trunk/jiaju001/news/lic/article_keywords_add.php | PHP | asf20 | 831 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
require_once(dirname(__FILE__)."/templets/makehtml_js.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/makehtml_js.php | PHP | asf20 | 206 |
<?php
require_once(dirname(__FILE__)."/config.php");
$t1 = ExecTime();
CheckPurview('sys_MakeHtml');
require_once(dirname(__FILE__)."/../include/inc_arcpart_view.php");
if($dopost=="view")
{
$pv = new PartView();
$templet = str_replace("{style}",$cfg_df_style,$templet);
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet);
$pv->Display();
$pv->Close();
}
else if($dopost=="make")
{
header("Content-Type: text/html; charset={$cfg_ver_lang}");
$homeFile = dirname(__FILE__)."/".$position;
$homeFile = str_replace("\\","/",$homeFile);
$homeFile = str_replace("//","/",$homeFile);
$fp = fopen($homeFile,"w") or die("你指定的文件名有问题,无法创建文件");
fclose($fp);
if($saveset==1)
{
$dsql = new DedeSql(false);
$dsql->SetQuery("update #@__homepageset set templet='$templet',position='$position' ");
$dsql->ExecuteNoneQuery();
$dsql->Close();
}
$templet = str_replace("{style}",$cfg_df_style,$templet);
$pv = new PartView();
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet);
$pv->SaveToHtml($homeFile);
$pv->Close();
echo "成功更新主页HTML:".$homeFile;
echo "<br/><br/><a href='$position' target='_blank'>浏览...</a>";
}
$t2 = ExecTime();
echo "<!-- ".($t2-$t1)." -->";
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/makehtml_homepage_action.php | PHP | asf20 | 1,305 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('spec_Edit');
require_once(DEDEADMIN."/inc/inc_catalog_options.php");
require_once(DEDEADMIN."/../include/pub_dedetag.php");
require_once(DEDEADMIN."/inc/inc_archives_functions.php");
$aid = intval($aid);
$channelid="-1";
$dsql = new DedeSql(false);
//读取归档信息
//------------------------------
$tables = GetChannelTable($dsql,$aid,'arc');
$arcQuery = "Select c.typename as channelname,r.membername as rankname,a.*
From `{$tables['maintable']}` a
left join #@__channeltype c on c.ID=a.channel
left join #@__arcrank r on r.rank=a.arcrank
where a.ID='$aid'";
$arcRow = $dsql->GetOne($arcQuery);
if(!is_array($arcRow)){
$dsql->Close();
ShowMsg("读取档案基本信息出错!","javascript:;");
exit();
}
$query = "Select * From #@__channeltype where ID='".$arcRow['channel']."'";
$cInfos = $dsql->GetOne($query);
if(!is_array($cInfos)){
$dsql->Close();
ShowMsg("读取频道配置信息出错!","javascript:;");
exit();
}
$addtable = $cInfos['addtable'];
$addQuery = "Select * From `$addtable` where aid='$aid'";
$addRow = $dsql->GetOne($addQuery);
$tags = GetTagFormLists($dsql,$aid);
require_once(DEDEADMIN."/templets/spec_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/spec_edit.php | PHP | asf20 | 1,291 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/templets/makehtml_map_guide.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/makehtml_map_guide.php | PHP | asf20 | 146 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_MakeHtml');
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
require_once(dirname(__FILE__)."/templets/makehtml_list.htm");
ClearAllLink();
?>
| zyyhong | trunk/jiaju001/news/lic/makehtml_list.php | PHP | asf20 | 241 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('a_Edit,a_AccEdit,a_MyEdit');
require_once(DEDEADMIN."/inc/inc_catalog_options.php");
require_once(DEDEADMIN."/../include/pub_dedetag.php");
require_once(DEDEADMIN."/inc/inc_archives_functions.php");
$aid = intval($aid);
$dsql = new DedeSql(false);
$tables = GetChannelTable($dsql,$aid,'arc');
//读取归档信息
//------------------------------
$arcQuery = "Select c.typename as channelname,ar.membername as rankname,a.* ,full.keywords as words
From `{$tables['maintable']}` a
left join #@__channeltype c on c.ID=a.channel
left join #@__arcrank ar on ar.rank=a.arcrank
left join #@__full_search full on full.aid=a.ID
where a.ID='$aid'";
$addQuery = "Select * From `{$tables['addtable']}` where aid='$aid'";
$arcRow = $dsql->GetOne($arcQuery);
$arcRow['keywords'] = $arcRow['words'];
if(!is_array($arcRow)){
$dsql->Close();
ShowMsg("读取档案基本信息出错!","javascript:;");
exit();
}
$query = "Select * From #@__channeltype where ID='".$arcRow['channel']."'";
$cInfos = $dsql->GetOne($query);
if(!is_array($cInfos)){
$dsql->Close();
ShowMsg("读取频道配置信息出错!","javascript:;");
exit();
}
$channelid = $arcRow['channel'];
$addtable = $cInfos['addtable'];
$addQuery = "Select * From ".$cInfos['addtable']." where aid='$aid'";
$addRow = $dsql->GetOne($addQuery);
$tags = GetTagFormLists($dsql,$aid);
require_once(dirname(__FILE__)."/templets/flash_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/flash_edit.php | PHP | asf20 | 1,538 |
<?php
require(dirname(__FILE__)."/config.php");
CheckPurview('sys_Data');
if(empty($dopost)) $dopost = "";
header("Content-Type: text/html; charset={$cfg_ver_lang}");
$dsql = new DedeSql(false);
if($dopost=="viewinfo") //查看表结构
{
if(empty($tablename)) echo "没有指定表名!";
else{
$dsql->SetQuery("SHOW CREATE TABLE ".$dsql->dbName.".".$tablename);
$dsql->Execute();
$row2 = $dsql->GetArray();
$ctinfo = $row2[1];
echo "<xmp>".trim($ctinfo)."</xmp>";
}
$dsql->Close();
exit();
}
else if($dopost=="opimize") //优化表
{
if(empty($tablename)) echo "没有指定表名!";
else{
$dsql->ExecuteNoneQuery("OPTIMIZE TABLE `$tablename` ");
$dsql->Close();
echo "执行优化表: $tablename OK!";
}
exit();
}else if($dopost=="repair") //修复表
{
if(empty($tablename)) echo "没有指定表名!";
else{
$rs = $dsql->ExecuteNoneQuery("REPAIR TABLE `$tablename` ");
$dsql->Close();
echo "修复表: $tablename OK!";
}
exit();
}else if($dopost=="query") //执行SQL语句
{
$t1 = ExecTime();
$sqlquery = trim(stripslashes($sqlquery));
if(eregi("drop(.*)table",$sqlquery)
|| eregi("drop(.*)database",$sqlquery)){
echo "<span style='font-size:10pt'>删除'数据表'或'数据库'的语句不允许在这里执行。</span>";
$dsql->Close();
exit();
}
//运行查询语句
if(eregi("^select ",$sqlquery))
{
$dsql->SetQuery($sqlquery);
$dsql->Execute();
if($dsql->GetTotalRow()<=0) echo "运行SQL:{$sqlquery},无返回记录!";
else echo "运行SQL:{$sqlquery},共有".$dsql->GetTotalRow()."条记录,最大返回100条!";
$j = 0;
while($row = $dsql->GetArray())
{
$j++;
if($j>100) break;
echo "<hr size=1 width='100%'/>";
echo "记录:$j";
echo "<hr size=1 width='100%'/>";
foreach($row as $k=>$v){
if(ereg("[^0-9]",$k)){ echo "<font color='red'>{$k}:</font>{$v}<br/>\r\n"; }
}
}
$t2 = ExecTime();
echo "<hr>执行时间:".($t2-$t1);
exit();
}
if($querytype==2){
//普通的SQL语句
$sqlquery = str_replace("\r","",$sqlquery);
$sqls = split(";[ \t]{0,}\n",$sqlquery);
$nerrCode = ""; $i=0;
foreach($sqls as $q){
$q = trim($q); if($q==""){ continue; }
$dsql->ExecuteNoneQuery($q);
$errCode = trim($dsql->GetError());
if($errCode=="") $i++;
else $nerrCode .= "执行: <font color='blue'>$q</font> 出错,错误提示:<font color='red'>".$errCode."</font><br>";
}
echo "成功执行{$i}个SQL语句!<br><br>";
echo $nerrCode;
}else{
$dsql->ExecuteNoneQuery($sqlquery);
$nerrCode = trim($dsql->GetError());
echo "成功执行1个SQL语句!<br><br>";
echo $nerrCode;
}
$dsql->Close();
$t2 = ExecTime();
echo "<hr>执行时间:".($t2-$t1);
exit();
}
require_once(dirname(__FILE__)."/templets/sys_sql_query.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/sys_sql_query.php | PHP | asf20 | 2,997 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('c_New');
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select ID From #@__channeltype order by ID desc limit 0,1 ");
$newid = $row['ID']+1;
if($newid<10) $newid = $newid+10;
require_once(dirname(__FILE__)."/templets/mychannel_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mychannel_add.php | PHP | asf20 | 336 |
<?php
require_once(dirname(__FILE__)."/config.php");
AjaxHead();
if(empty($t)) echo '';
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select aid From #@__full_search where title like '$t' ");
$dsql->Close();
if(is_array($row)) echo "提示:系统已经存在标题为 '<a href='../plus/view.php?aid={$row['aid']}' style='color:red' target='_blank'><u>$t</u></a>' 的文档。[<a href='#' onclick='javascript:HideObj(\"_mytitle\")'>关闭</a>]";
else echo '';
?> | zyyhong | trunk/jiaju001/news/lic/article_test_title.php | PHP | asf20 | 476 |
<?php
require(dirname(__FILE__)."/config.php");
CheckPurview('plus_广告管理');
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
if(empty($dopost)) $dopost = "";
//////////////////////////////////////////
if($dopost=="save")
{
//timeset tagname typeid normbody expbody
$tagname = trim($tagname);
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select typeid From #@__myad where typeid='$typeid' And tagname like '$tagname'");
if(is_array($row)){
$dsql->Close();
ShowMsg("在相同栏目下已经存在同名的标记!","-1");
exit();
}
$starttime = GetMkTime($starttime);
$endtime = GetMkTime($endtime);
$inQuery = "
Insert Into #@__myad(typeid,tagname,adname,timeset,starttime,endtime,normbody,expbody)
Values('$typeid','$tagname','$adname','$timeset','$starttime','$endtime','$normbody','$expbody');
";
$dsql->SetQuery($inQuery);
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功增加一个广告!","ad_main.php");
exit();
}
$startDay = time();
$endDay = AddDay($startDay,30);
$startDay = GetDateTimeMk($startDay);
$endDay = GetDateTimeMk($endDay);
require_once(dirname(__FILE__)."/templets/ad_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/ad_add.php | PHP | asf20 | 1,220 |
/* 新CSS样式 */ | zyyhong | trunk/jiaju001/news/lic/div.css | CSS | asf20 | 18 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Writer');
if(empty($dopost)) $dopost = "";
if(empty($allwriter)) $allwriter = "";
else $allwriter = stripslashes($allwriter);
$m_file = dirname(__FILE__)."/inc/writer.txt";
//保存
if($dopost=="save")
{
$fp = fopen($m_file,'w');
flock($fp,3);
fwrite($fp,$allwriter);
fclose($fp);
header("Content-Type: text/html; charset={$cfg_ver_lang}");
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset={$cfg_ver_lang}\">\r\n";
echo "<script>alert('Save OK!');</script>";
}
//读出
if(empty($allwriter)&&filesize($m_file)>0){
$fp = fopen($m_file,'r');
$allwriter = fread($fp,filesize($m_file));
fclose($fp);
}
require_once(dirname(__FILE__)."/templets/article_writer_edit.htm");
ClearAllLink();
?>
| zyyhong | trunk/jiaju001/news/lic/article_writer_edit.php | PHP | asf20 | 837 |
<?php
require_once(dirname(__FILE__)."/config.php");
if(empty($dopost)){
ShowMsg("对不起,请指定栏目参数!","catalog_main.php");
exit();
}
if(empty($cid)) $cid = 0;
$cid = ereg_replace("[^0-9]","",$cid);
/*--------------------------
//增加文档
function addArchives();
---------------------------*/
if($dopost=="addArchives")
{
if(empty($cid) && empty($channelid))
{
require_once(_ADMIN."/public_guide.php");
exit();
}
$dsql = new DedeSql(false);
if(!empty($channelid)) $row = $dsql->GetOne("Select ID,addcon from #@__channeltype where ID='$channelid'");
else $row = $dsql->GetOne("Select #@__channeltype.addcon,#@__channeltype.ID from #@__arctype left join #@__channeltype on #@__channeltype.ID=#@__arctype.channeltype where #@__arctype.ID='$cid'");
$gurl = $row["addcon"];
$channelid = $row['ID'];
$dsql->Close();
if($gurl==""){
ShowMsg("对不起,你指的栏目可能有误!","catalog_main.php");
exit();
}
require_once(dirname(__FILE__)."/$gurl");
exit();
}
/*--------------------------
//管理文档
function listArchives();
---------------------------*/
else if($dopost=="listArchives")
{
if(!isset($channelid)) $channelid = 0;
if(!empty($gurl)){
$gurl = str_replace("..","",$gurl);
require_once(dirname(__FILE__)."/$gurl");
exit();
}
if($cid>0)
{
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select t.typename,c.typename as channelname,c.ID,c.mancon from #@__arctype t left join #@__channeltype c on c.ID=t.channeltype where t.ID='$cid'");
$gurl = $row["mancon"];
$channelid = $row["ID"];
$typename = $row["typename"];
$channelname = $row["channelname"];
$dsql->Close();
if($gurl==""){
ShowMsg("对不起,你指的栏目可能有误!","catalog_main.php");
exit();
}
}
else if($channelid>0)
{
$dsql = new DedeSql(-100);
$row = $dsql->GetOne("Select typename,ID,mancon from #@__channeltype where ID='$channelid'");
$gurl = $row["mancon"];
$channelid = $row["ID"];
$typename = "";
$channelname = $row["typename"];
$dsql->Close();
}
if(empty($gurl)) $gurl = 'content_list.php';
header("location:{$gurl}?channelid={$channelid}&cid={$cid}");
exit();
}
/*--------------------------
//浏览通用模板目录
function viewTempletDir();
---------------------------*/
else if($dopost=="viewTemplet")
{
header("location:file_manage_main.php?activepath=".$cfg_templets_dir);
exit();
}
/*--------------------------
//留言簿管理
function GoGuestBook();
---------------------------*/
else if($dopost=="guestbook")
{
echo "<script language='javascript'>location='".$cfg_plus_dir."/guestbook/index.php?gotopagerank=admin';</script>";
exit();
}
/*------------------------
浏览单个页面的栏目
function ViewSgPage()
------------------------*/
else if($dopost=="viewSgPage")
{
require_once(dirname(__FILE__)."/../include/inc_arclist_view.php");
$lv = new ListView($cid);
$pageurl = $lv->MakeHtml();
$lv->Close();
ShowMsg("更新缓冲,请稍后...",$pageurl);
exit();
}
/*------------------------
更改栏目排列顺序
function upRank()
------------------------*/
else if($dopost=="upRank")
{
//检查权限许可
CheckPurview('t_Edit,t_AccEdit');
//检查栏目操作许可
CheckCatalog($cid,"你无权更改本栏目!");
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select reID,sortrank From #@__arctype where ID='$cid'");
$reID = $row['reID'];
$sortrank = $row['sortrank'];
$row = $dsql->GetOne("Select sortrank From #@__arctype where sortrank<=$sortrank And reID=$reID order by sortrank desc ");
if(is_array($row)){
$sortrank = $row['sortrank']-1;
$dsql->SetQuery("update #@__arctype set sortrank='$sortrank' where ID='$cid'");
$dsql->ExecuteNoneQuery();
}
$dsql->Close();
ShowMsg("操作成功,返回目录...","catalog_main.php");
exit();
}
else if($dopost=="upRankAll")
{
//检查权限许可
CheckPurview('t_Edit');
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select ID From #@__arctype order by ID desc");
if(is_array($row))
{
$maxID = $row['ID'];
for($i=1;$i<=$maxID;$i++){
if(isset(${'sortrank'.$i})){
$dsql->ExecuteNoneQuery("Update #@__arctype set sortrank='".(${'sortrank'.$i})."' where ID='{$i}';");
}
}
}
$dsql->Close();
ShowMsg("操作成功,正在返回...","catalog_main.php");
exit();
}
/*---------------------
获取JS文件
function GetJs
----------------------*/
else if($dopost=="GetJs")
{
require_once(dirname(__FILE__)."/makehtml_js.php");
exit();
}
/*-----------
编辑单独页面
function editSgPage();
-----------*/
else if($dopost=="editSgPage")
{
//检查权限许可
CheckPurview('plus_文件管理器');
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select defaultname,typedir From #@__arctype where ID='$cid'");
$dsql->Close();
require_once(dirname(__FILE__)."/../include/inc_arclist_view.php");
$lv = new ListView($cid);
$lv->MakeHtml();
$lv->Close();
$row['typedir'] = eregi_replace("\{cmspath\}",$cfg_cmspath,$row['typedir']);
$editurl = "file_manage_view.php?backurl=catalog_main.php&fmdo=editview&ishead=yes&filename=".$row['defaultname']."&activepath=".urlencode($row['typedir'])."&job=edit";
header("location:$editurl");
exit();
}
/*-----------
编辑模板页面
function editSgTemplet();
-----------*/
else if($dopost=="editSgTemplet")
{
//检查权限许可
CheckPurview('plus_文件管理器');
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select tempone From #@__arctype where ID='$cid'");
$dsql->Close();
$tempone = $row['tempone'];
$tempone = eregi_replace("\{style\}",$cfg_df_style,$tempone);
if(!is_file($cfg_basedir.$cfg_templets_dir."/".$tempone)){
ShowMsg("这个单独页面没有使用模板,现在转向直接编辑这个页面。","catalog_do.php?cid=$cid&dopost=editSgPage");
exit();
}
$tempones = explode('/',$tempone);
$filename = $tempones[count($tempones)-1];
$tmpdir = $cfg_templets_dir;
if(count($tempones)>1){
foreach($tempones as $v){
if($v!="") $tmpdir .= "/".$v;
}
}
$editurl = "file_manage_view.php?backurl=catalog_main.php&fmdo=editview&ishead=yes&filename=".$filename."&activepath=".urlencode($tmpdir)."&job=edit";
header("location:$editurl");
exit();
}
/*-----------
获得子类的内容
function GetSunLists();
-----------*/
else if($dopost=="GetSunLists")
{
$userChannel = $cuserLogin->getUserChannel();
require_once(dirname(__FILE__)."/../include/inc_typeunit_admin.php");
AjaxHead();
PutCookie('lastCid',$cid,3600*24,"/");
$tu = new TypeUnit($userChannel);
$tu->dsql = new DedeSql(false);
$tu->LogicListAllSunType($cid," ");
$tu->Close();
}
/*-----------
获得子类的内容
function GetSunListsMenu();
-----------*/
else if($dopost=="GetSunListsMenu")
{
$userChannel = $cuserLogin->getUserChannel();
require_once(dirname(__FILE__)."/../include/inc_typeunit_menu.php");
AjaxHead();
PutCookie('lastCidMenu',$cid,3600*24,"/");
$tu = new TypeUnit($userChannel);
$tu->dsql = new DedeSql(false);
$tu->LogicListAllSunType($cid," ");
$tu->Close();
}
/*-----------
获得子类的内容
function GetSunListsTree();
-----------*/
else if($dopost=="GetSunListsTree")
{
$userChannel = $cuserLogin->getUserChannel();
require_once(dirname(__FILE__)."/../include/inc_type_tree.php");
if(empty($opall)) $opall = 0;
if(empty($c)) $c = 0;
if(empty($cid)) $cid = 0;
AjaxHead();
PutCookie('lastCidTree',$cid,3600*24,"/");
$tu = new TypeTree($userChannel);
$tu->dsql = new DedeSql(false);
$tu->LogicListAllSunType($cid," ",$opall,$c);
$tu->Close();
}
ClearAllLink();
?>
| zyyhong | trunk/jiaju001/news/lic/catalog_do.php | PHP | asf20 | 7,809 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_vote.php");
$aid = ereg_replace("[^0-9]","",$aid);
$vt = new DedeVote($aid);
$vcode = $vt->GetVoteForm();
$vt->Close();
require_once(dirname(__FILE__)."/templets/vote_getcode.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/vote_getcode.php | PHP | asf20 | 315 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('co_EditNote');
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
if($nid=="")
{
ShowMsg("参数无效!","-1");
exit();
}
$dsql = new DedeSql(false);
$rowFirst = $dsql->GetOne("Select * from #@__conote where nid='$nid'");
$notename = $rowFirst['gathername'];
$notes = $rowFirst['noteinfo'];
$exrule = $rowFirst['typeid'];
$arcsource = $rowFirst['arcsource'];
$dsql->FreeResult();
$dtp = new DedeTagParse();
$dtp->SetNameSpace("dede","{","}");
$dtp2 = new DedeTagParse();
$dtp2->SetNameSpace("dede","{","}");
$dtp3 = new DedeTagParse();
$dtp3->SetNameSpace("dede","{","}");
$dtp->LoadString($notes);
foreach($dtp->CTags as $tid => $ctag)
{
if($ctag->GetName()=="item")
{
$imgurl = $ctag->GetAtt("imgurl");
$imgdir = $ctag->GetAtt("imgdir");
$language = $ctag->GetAtt("language");
$matchtype = $ctag->GetAtt("matchtype");
$refurl = $ctag->GetAtt("refurl");
$isref = $ctag->GetAtt("isref");
$exptime = $ctag->GetAtt("exptime");
}
else if($ctag->GetName()=="list")
{
$sunnote = $ctag->GetInnerText();
$dtp2->LoadString($sunnote);
$source = $ctag->GetAtt('source');
$sourcetype = $ctag->GetAtt('sourcetype');
$varstart = $ctag->GetAtt('varstart');
$varend = $ctag->GetAtt('varend');
$urlTag = $dtp2->GetTagByName('url');
$needTag = $dtp2->GetTagByName('need');
$cannotTag = $dtp2->GetTagByName('cannot');
$linkareaTag = $dtp2->GetTagByName('linkarea');
}
else if($ctag->GetName()=="art")
{
$sunnote = $ctag->GetInnerText();
$dtp3->LoadString($sunnote);
$sppageTag = $dtp3->GetTagByName('sppage');
}
}
require_once(dirname(__FILE__)."/templets/co_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/co_edit.php | PHP | asf20 | 1,831 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('c_List');
require_once(dirname(__FILE__)."/../include/pub_datalist.php");
require_once(dirname(__FILE__)."/../include/inc_functions.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
function GetSta($sta,$ID)
{
if($sta==1) return "启用 > <a href='mychannel_edit.php?dopost=hide&ID=$ID'><u>禁用</u></a>";
else return "<font color='red'>禁用</font> > <a href='mychannel_edit.php?dopost=show&ID=$ID'><u>启用</u></a>";
}
function IsSystem($s)
{
if($s==1) return "系统模型";
else return "自动模型";
}
$sql = "Select ID,nid,typename,addtable,mancon,isshow,issystem From #@__channeltype order by ID";
$dlist = new DataList();
$dlist->Init();
$dlist->SetSource($sql);
$dlist->SetTemplet(dirname(__FILE__)."/templets/mychannel_main.htm");
$dlist->display();
$dlist->Close();
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mychannel_main.php | PHP | asf20 | 926 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('co_Export');
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
require_once(dirname(__FILE__)."/../include/inc_channel_unit_functions.php");
header("Content-Type: text/html; charset={$cfg_ver_lang}");
if(!isset($channelid)) $channelid = 0;
if(!isset($typeid)) $typeid = 0;
if(!isset($pageno)) $pageno = 1;
if(!isset($startid)) $startid = 0;
if(!isset($endid)) $endid = 0;
if(!isset($makehtml)) $makehtml = 0;
if(!isset($onlytitle)) $onlytitle = 0;
if(!isset($smakeid)) $smakeid = 0;
$nid = intval($nid);
if($channelid>0 && $typeid==0){
ShowMsg('请指定栏目ID!','javascript:;');
exit();
}
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select ex.*,n.arcsource From `#@__conote` n left join `#@__co_exrule` ex on ex.aid=n.typeid where nid='$nid'");
if(!is_array($row)){
ShowMsg('找不到导入规则,无法完成操作!','javascript:;');
$dsql->Close();
exit();
}
$channelid = $row['channelid'];
$etype = $row['etype'];
$arcsource = $row['arcsource'];
$senddate = time();
$typeinfos = $dsql->GetOne("Select * From `#@__arctype` where ID='$typeid'",MYSQL_ASSOC);
//分析规则,并生成临时的SQL语句
//-------------------------------------
$dtp = new DedeTagParse();
$dtp->LoadString($row['ruleset']);
$noteinfo = $dtp->GetTagByName('note');
$tablenames = explode(",",$noteinfo->GetAtt('tablename'));
$autofield = $noteinfo->GetAtt('autofield');
$synfield = $noteinfo->GetAtt('synfield');
$tablename1 = str_replace('#@__',$cfg_dbprefix,$tablenames[0]);
$tb1SqlKey = "Insert Into `$tablename1`($autofield";
$tb1SqlValue = " Values('@$autofield@'";
if(count($tablenames)>=2){
$tablename2 = str_replace('#@__',$cfg_dbprefix,$tablenames[1]);
$tb2SqlKey = "Insert Into `$tablename2`(";
$tb2SqlValue = " Values(";
if($synfield!=''){
$tb2SqlKey .= $synfield;
$tb2SqlValue .= "'@$synfield@'";
}
}
else{
$tablename2 = '';
$tb2SqlKey = '';
$tb2SqlValue = '';
}
$exKeys = Array();
foreach($dtp->CTags as $tagid => $ctag)
{
if($ctag->GetName()=='field')
{
$fieldname = $ctag->GetAtt('name');
$tbname = str_replace('#@__',$cfg_dbprefix,$ctag->GetAtt('intable'));
if($tbname==$tablename1){
$tb1SqlKey .= ",$fieldname";
if($ctag->GetAtt('source')!='value'){
$tb1SqlValue .= ",'@#{$tbname}.{$fieldname}#@'";
}else{
$nvalue = str_replace('{tid}',$typeid,$ctag->GetInnerText());
$nvalue = str_replace('{cid}',$channelid,$nvalue);
$nvalue = str_replace('{rank}',$arcrank,$nvalue);
$nvalue = str_replace('{admin}',$cuserLogin->getUserID(),$nvalue);
$nvalue = str_replace('{senddate}',$senddate,$nvalue);
$nvalue = str_replace('{source}',$arcsource,$nvalue);
$tb1SqlValue .= ",'$nvalue'";
}
}
else if($tbname==$tablename2){
$tb2SqlKey .= ",$fieldname";
if($ctag->GetAtt('source')!='value'){
$tb2SqlValue .= ",'@#{$tbname}.{$fieldname}#@'";
}else{
$nvalue = str_replace('{tid}',$typeid,$ctag->GetInnerText());
$nvalue = str_replace('{cid}',$channelid,$nvalue);
$tb2SqlValue .= ",'$nvalue'";
}
}
}
}
$tb1SqlKey = str_replace('(,','(',$tb1SqlKey).")";
$tb1SqlValue = str_replace('(,','(',$tb1SqlValue).");";
$tb1Sql = $tb1SqlKey.$tb1SqlValue;
if($tablename2!="")
{
$tb2SqlKey = str_replace("(,","(",$tb2SqlKey).")";
$tb2SqlValue = str_replace("(,","(",$tb2SqlValue).");";
$tb2Sql = $tb2SqlKey.$tb2SqlValue;
}
//导出数据的SQL操作
//---------------------------------
$totalpage = $totalcc/$pagesize;
$startdd = ($pageno-1) * $pagesize;
$dsql->SetQuery("Select * From #@__courl where nid='$nid' order by aid asc limit $startdd,$pagesize");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$tmpSql1 = $tb1Sql;
$tmpSql2 = $tb2Sql;
$dtp->LoadString($row->result);
$aid = $row->aid;
if(!is_array($dtp->CTags)){ continue; }
$isbreak = false;
$title = '';
$pubdate = 0;
foreach($dtp->CTags as $ctag)
{
if($ctag->GetName()!="field") continue;
$tvalue = str_replace('#@__',$cfg_dbprefix,$ctag->GetAtt("name"));
if($pubdate==0 && eregi("\.pubdate$",$tvalue)){
$pubdate = $ctag->GetInnerText();
$pubdate = @intval($pubdate);
}
if($title=='' && eregi("\.title$",$tvalue))
{
$title = $ctag->GetInnerText();
$title = trim($title);
if($title==''){
echo "程序阻止标题为空的内容导入<br/>";
$isbreak = true;
break;
}
//排除重复标题
if($onlytitle==1)
{
$title = addslashes($title);
$testrow = $dsql->GetOne("Select count(aid) as dd From `#@__full_search` where channelid='$channelid' And title like '$title'");
if($testrow['dd']>0){
echo "数据库已存在标题为: {$title} 的文档,程序阻止了此内容导入<br/>";
$isbreak = true;
break;
}
}////排除重复标题
}
$truevalue = $ctag->GetInnerText();
$tmpSql1 = str_replace('@#'.$tvalue.'#@',addslashes(trim($truevalue)),$tmpSql1);
if($tablename2!=''){
$tmpSql2 = str_replace('@#'.$tvalue.'#@',addslashes(trim($truevalue)),$tmpSql2);
}
}
if($isbreak) continue;
if($pubdate==0) $pubdate = $senddate;
$tmpSql1 = ereg_replace('@#(.*)#@','',$tmpSql1);
$tmpSql2 = ereg_replace('@#(.*)#@','',$tmpSql2);
//这里的规则仅针对当前系统,如果其它系统,需修改这里的逻辑
$arcid = GetIndexKey($dsql,$typeid,$channelid);
if($smakeid==0) $smakeid = $arcid;
$fileurl = GetFileUrl($arcid,$typeid,$senddate,$title,1,0,$typeinfos['namerule'],$typeinfos['typedir'],0,true,$typeinfos['siteurl']);
$dsql->ExecuteNoneQuery("Update `#@__full_search` set url='".addslashes($fileurl)."',uptime='$senddate',pubdate='$pubdate' where aid='$arcid' ");
$tmpSql1 = str_replace("@$autofield@",$arcid,$tmpSql1);
$rs = $dsql->ExecuteNoneQuery($tmpSql1);
if($rs){
if($tablename2!=""){
$tmpSql2 = str_replace("@$synfield@",$arcid,$tmpSql2);
$rs = $dsql->ExecuteNoneQuery($tmpSql2);
if(!$rs){
$dsql->ExecuteNoneQuery("Delete From `#@__full_search` where aid='$arcid' ");
$dsql->ExecuteNoneQuery("Delete From `$tablename1` where $autofield='$arcid'");
}else{
$dsql->ExecuteNoneQuery("update `#@__courl` set isex=1 where aid='$aid'");
}
}
}else
{
$dsql->ExecuteNoneQuery("Delete From `#@__full_search` where aid='$arcid' ");
echo "错误记录:";
echo "$tmpSql1 ";
echo $dsql->GetError()."<hr />";
}
}
$dsql->Close();
//检测是否完成或后续操作
//---------------------------------
if($totalpage <= $pageno)
{
if($channelid>0 && $makehtml==1){
if($arcrank==0){
$mhtml = "makehtml_archives_action.php?typeid={$typeid}&startid={$smakeid}&endid=0&pagesize=20";
ShowMsg("完成数据导入,准备生成文档HTML...",$mhtml);
ClearAllLink();
exit();
}else
{
ShowMsg("完成数据导入,因为你选择了把文档保存为草稿,因此无法生成HTML!","javascript:;");
ClearAllLink();
exit();
}
}else{
ShowMsg("完成所有数据导入!","javascript:;");
ClearAllLink();
exit();
}
}
else
{
if($totalpage>0) $rs = substr(($pageno/$totalpage * 100),0,2);
else $rs = "100";
$pageno++;
$gourl = "co_export_action.php?nid=$nid&smakeid={$smakeid}&totalcc=$totalcc&channelid=$channelid&pageno=$pageno";
$gourl .= "&ruleid=$ruleid&typeid=$typeid&arcrank=$arcrank&pagesize=$pagesize";
$gourl .= "&startid=$startid&endid=$endid&onlytitle=$onlytitle&makehtml=$makehtml";
ShowMsg("完成 {$rs}% 导入,继续执行操作...",$gourl,"",100);
ClearAllLink();
exit();
}
?> | zyyhong | trunk/jiaju001/news/lic/co_export_action.php | PHP | asf20 | 7,790 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
require_once(dirname(__FILE__)."/inc/inc_admin_channel.php");
if(empty($action)) $action = '';
//获取模型信息
$dsql = new DedeSql(false);
$mysql_version = $dsql->GetVersion();
$mysql_versions = explode(".",trim($mysql_version));
$mysql_version = $mysql_versions[0].".".$mysql_versions[1];
$row = $dsql->GetOne("Select fieldset,maintable,addtable,issystem From #@__channeltype where ID='$ID'");
$fieldset = $row['fieldset'];
$trueTable = $row['addtable'];
$dtp = new DedeTagParse();
$dtp->SetNameSpace("field","<",">");
$dtp->LoadSource($fieldset);
foreach($dtp->CTags as $ctag){
if(strtolower($ctag->GetName())==strtolower($fname)) break;
}
//字段类型信息
$ds = file(dirname(__FILE__)."/inc/fieldtype.txt");
foreach($ds as $d){
$dds = explode(',',trim($d));
$fieldtypes[$dds[0]] = $dds[1];
}
//保存更改
/*--------------------
function _SAVE()
----------------------*/
if($action=='save')
{
if(!isset($fieldtypes[$dtype])){
ClearAllLink();
ShowMsg("你修改的是系统专用类型的数据,禁止操作!","-1");
exit();
}
//检测数据库是否存在附加表,不存在则新建一个
$tabsql = "CREATE TABLE IF NOT EXISTS `{$row['addtable']}`( `aid` int(11) NOT NULL default '0',\r\n `typeid` int(11) NOT NULL default '0',\r\n ";
if($mysql_version < 4.1)
$tabsql .= " PRIMARY KEY (`aid`), KEY `".$trueTable."_index` (`typeid`)\r\n) TYPE=MyISAM; ";
else
$tabsql .= " PRIMARY KEY (`aid`), KEY `".$trueTable."_index` (`typeid`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=".$cfg_db_language."; ";
$dsql->ExecuteNoneQuery($tabsql);
//检测附加表里含有的字段
$fields = array();
$rs = $dsql->SetQuery("show fields from `{$row['addtable']}`");
$dsql->Execute('a');
while($nrow = $dsql->GetArray('a',MYSQL_ASSOC)){
$fields[ strtolower($nrow['Field']) ] = $nrow['Type'];
}
//修改字段配置信息
$dfvalue = $vdefault;
$isnull = ($isnull==1 ? "true" : "false");
$mxlen = $maxlength;
$fieldname = strtolower($fname);
//检测被修改的字段类型,并更新数据表
$fieldinfos = GetFieldMake($dtype,$fieldname,$dfvalue,$mxlen);
$ntabsql = $fieldinfos[0];
$buideType = $fieldinfos[1];
$tabsql = '';
//检测旧数据类型,并替换为新配置
foreach($dtp->CTags as $tagid=>$ctag)
{
if($fieldname==strtolower($ctag->GetName()))
{
if(isset($fields[$fieldname]) && $fields[$fieldname]!=$buideType){
$tabsql = "ALTER TABLE `$trueTable` CHANGE `$fieldname` ".$ntabsql;
$dsql->ExecuteNoneQuery($tabsql);
}else if(!isset($fields[$fieldname])){
$tabsql = "ALTER TABLE `$trueTable` ADD ".$ntabsql;
$dsql->ExecuteNoneQuery($tabsql);
}else{
$tabsql = '';
}
$dtp->Assign($tagid,stripslashes($fieldstring),false);
break;
}
}
$oksetting = $dtp->GetResultNP();
$addlist = GetAddFieldList($dtp,$oksetting);
$oksetting = addslashes($oksetting);
$dsql->ExecuteNoneQuery("Update #@__channeltype set fieldset='$oksetting',listadd='$addlist' where ID='$ID' ");
ClearAllLink();
ShowMsg("成功更改一个字段的配置!","mychannel_edit.php?ID={$ID}&dopost=edit");
exit();
}
/*------------------
删除字段
function _DELETE()
-------------------*/
else if($action=="delete")
{
if($row['issystem']==1){
ClearAllLink();
ShowMsg("对不起,系统模型的字段不允许删除!","-1");
exit();
}
//检测旧数据类型,并替换为新配置
foreach($dtp->CTags as $tagid=>$ctag){
if(strtolower($ctag->GetName())==strtolower($fname)){ $dtp->Assign($tagid,"@Has del {$fname}@"); }
}
$oksetting = addslashes($dtp->GetResultNP());
$dsql->ExecuteNoneQuery("Update #@__channeltype set fieldset='$oksetting' where ID='$ID' ");
$dsql->ExecuteNoneQuery("ALTER TABLE `$trueTable` DROP `$fname` ");
ClearAllLink();
ShowMsg("成功删除一个字段!","mychannel_edit.php?ID={$ID}&dopost=edit");
exit();
}
require_once(dirname(__FILE__)."/templets/mychannel_field_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mychannel_field_edit.php | PHP | asf20 | 4,264 |
<?php
require_once(dirname(__FILE__)."/config.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$dsql = new DedeSql(false);
if(empty($pagesize)) $pagesize = 20;
if(empty($pageno)) $pageno = 1;
if(empty($dopost)) $dopost = '';
if(empty($orderby)) $orderby = 'aid';
if(empty($showtag)) $showtag = 0;
if(empty($showkw)) $showkw = 0;
if(!isset($action)) $action = '';
if($action == 'delete'){
if(is_array($kids)){
$kids = implode(',', $kids);
$query = "delete from #@__search_keywords where aid in ($kids)";
if($dsql->executenonequery($query)){
showmsg('批量删除关键词成功', 'search_keywords_main.php');
exit;
}else{
showmsg('批量删除关键词失败', 'search_keywords_main.php');
exit;
}
}
}
//初处化处理
$addget = '';
$addsql = '';
if(empty($keyword)){
$keyword = '';
}
if(!empty($type)){
$addget = '&keyword='.urlencode($keyword);
$addsql = " where CONCAT(keyword,spwords) like '%$keyword%' ";
}
//重载列表
if($dopost=='getlist'){
AjaxHead();
GetKeywordList($dsql,$pageno,$pagesize,$orderby);
$dsql->Close();
exit();
}
elseif($dopost == 'add'){
$count = ereg_replace("[^0-9]","",$count);
$keyword = trim($keyword);
$spwords = trim($spwords);
$timestamp = time();
$dsql->executeNoneQuery("insert into #@__search_keywords(keyword, spwords, count, lasttime)
values('$keyword', '$spwords','$count', '$timestamp');
");
AjaxHead();
GetKeywordList($dsql,$pageno,$pagesize,$orderby);
$dsql->Close();
exit();
}
//更新字段
else if($dopost=='update')
{
$aid = ereg_replace("[^0-9]","",$aid);
$count = ereg_replace("[^0-9]","",$count);
$keyword = trim($keyword);
$spwords = trim($spwords);
$dsql->ExecuteNoneQuery("Update `#@__search_keywords` set keyword='$keyword',spwords='$spwords',count='$count' where aid='$aid';");
AjaxHead();
GetKeywordList($dsql,$pageno,$pagesize,$orderby);
$dsql->Close();
exit();
}
//删除字段
else if($dopost=='del')
{
$aid = ereg_replace("[^0-9]","",$aid);
$dsql->ExecuteNoneQuery("Delete From `#@__search_keywords` where aid='$aid';");
AjaxHead();
GetKeywordList($dsql,$pageno,$pagesize,$orderby);
$dsql->Close();
exit();
}
//第一次进入这个页面
if($dopost==''){
$row = $dsql->GetOne("Select count(*) as dd From `#@__search_keywords` $addsql ");
$totalRow = $row['dd'];
include(dirname(__FILE__)."/templets/search_keywords_main.htm");
$dsql->Close();
}
//获得特定的关键字列表
//---------------------------------
function GetKeywordList(&$dsql,$pageno,$pagesize,$orderby='aid'){
global $cfg_phpurl,$addsql;
$start = ($pageno-1) * $pagesize;
$printhead ="<table width='96%' border='0' cellpadding='1' cellspacing='1' bgcolor='#E2F5BC' style='margin-bottom:3px' align='center'>
<tr align='center' bgcolor='' height='24'>
<td width='6%' height='28'><a href='#' onclick=\"ReloadPage('aid')\"><u>ID</u></a></td>
<td width='20%'>关键字</td>
<td width='25%'>分词结果</td>
<td width='6%'><a href='#' onclick=\"ReloadPage('count')\"><u>频率</u></a></td>
<td width='6%'><a href='#' onclick=\"ReloadPage('result')\"><u>结果</u></a></td>
<td width='6%'>选择</td>
<td width='20%'><a href='#' onclick=\"ReloadPage('lasttime')\"><u>最后搜索时间</u></a></td>
<td>管理</td>
</tr>
";
echo $printhead;
//echo "Select * From #@__search_keywords $addsql order by $orderby desc limit $start,$pagesize ";
$dsql->SetQuery("Select * From #@__search_keywords $addsql order by $orderby desc limit $start,$pagesize ");
$dsql->Execute();
$i = 0;
while($row = $dsql->GetArray())
{
$i++;
$nurl = "{$cfg_phpurl}/search.php?kwtype=0&keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword";
$line = "
<tr align='center' bgcolor='#FFFFFF' onMouseMove=\"javascript:this.bgColor='#FCFEDA';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">
<td height='28'>{$row['aid']}</td>
<td><input name='keyword' type='text' id='keyword{$row['aid']}' value='{$row['keyword']}' class='ininput'></td>
<td><input name='spwords' type='text' id='spwords{$row['aid']}' value='{$row['spwords']}' class='ininput'></td>
<td><input name='count' type='text' id='count{$row['aid']}' value='{$row['count']}' class='ininput'></td>
<td><a href='$nurl' target='_blank'><u>{$row['result']}</u></a></td>
<td><input type='checkbox' id='kids{$i}' name='kids[]' class='np' value='{$row['aid']}' /></td>
<td>".strftime("%y-%m-%d %H:%M",$row['lasttime'])."</td>
<td>
<a href='#' onclick='UpdateNote({$row['aid']})'>更新</a> |
<a href='#' onclick='DelNote({$row['aid']})'>删除</a>
</td>
</tr>";
echo $line;
}
echo "</table>\r\n";
}
?>
| zyyhong | trunk/jiaju001/news/lic/search_keywords_main.php | PHP | asf20 | 4,875 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_MdPwd');
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
if(empty($dopost)) $dopost = "";
$ID = $cuserLogin->getUserID();
$dsql = new DedeSql(false);
$msg = "";
if($dopost=="saveedit")
{
$pwd = trim($pwd);
if($pwd!='')
{
if(eregi("[^0-9a-z_@!\.\-]",$pwd))
{
ShowMsg("密码不合法!","-1",0,300);
exit();
}else{
$pwd = ",pwd='".substr(md5($pwd),0,24)."'";
}
}
$dsql->ExecuteNoneQuery("Update `#@__admin` set uname='$uname',tname='$tname',email='$email' $pwd where ID='$ID'");
$msg = "<script>alert('成功更改帐户!');</script>";
}
$row = $dsql->GetOne("Select * From #@__admin where ID='$ID'");
require_once(dirname(__FILE__)."/templets/my_acc_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/my_acc_edit.php | PHP | asf20 | 829 |
<?php
require_once(dirname(__FILE__)."/config.php");
$db = new DedeSql(false);
if(empty($action)){
$sectors = $topsectors = $subsectors = array();
$sectorscache = '';
$sql = "select * from #@__area order by disorder asc, id asc";
$db->SetQuery($sql);
$db->Execute();
while($row = $db->GetArray())
{
if($row['reid'] == 0)
{
$topsectors[] = $row;
}else
{
$subsectors[] = $row;
}
}
foreach($topsectors as $topsector)
{
$sectors[] = $topsector;
$sectorscache .= '<option value="'.$topsector['id'].'">|- '.$topsector['name'].'</option>';
foreach($subsectors as $subsector)
{
if($subsector['reid'] == $topsector['id'])
{
$sectors[] = $subsector;
}
}
}
include(dirname(__FILE__)."/templets/area.htm");
/*
function add()
*/
}elseif($action == 'add')
{
$name = trim($name);
if($name == '' ) {
ShowMsg('地区名称不能为空,将返回地区管理页面','area.php');
exit;
}
$reid = intval($reid);
$reid = max(0, $reid);
$sql = "insert into #@__area (name, reid) values ('$name', $reid);";
$db->SetQuery($sql);
if($db->ExecuteNoneQuery())
{
ShowMsg('添加地区成功,将返回地区管理页面','area.php');
}else
{
ShowMsg('更新地区失败,将返回地区管理页面','area.php');
}
/*
function edit()
*/
}elseif($action == 'edit')
{
if(empty($step)){
$sectorscache = '<option value="0">无(作为一级地区)</option>';
$sql = "select * from #@__area where id=$id";
$db->SetQuery($sql);
$sector = $db->GetOne();
$sql = "select * from #@__area where reid=0 and id!=$id order by disorder asc, id asc";
$db->SetQuery($sql);
$db->Execute();
while($topsector = $db->GetArray())
{
$check = '';
if($sector['reid'] != 0 && $topsector['id'] == $sector['reid'])
{
$check = 'selected';
}
$sectorscache .= '<option value="'.$topsector['id'].'" '. $check.'>'.$topsector['name'].'</option>';
}
include(dirname(__FILE__)."/templets/area.htm");
}elseif($step == 2){
$name = trim($name);
if($name == '' ){
ShowMsg('地区名称不能为空,将返回地区管理页面','area.php');
exit;
}
$reid = intval($reid);
$disorder = intval($disorder);
$reid = max(0, $reid);
$disorder = max(0, $disorder);
$sql = "update #@__area set name='$name', reid=$reid, disorder=$disorder where id=$id";
$db->SetQuery($sql);
if($db->ExecuteNoneQuery())
{
ShowMsg('编辑地区成功,将返回地区管理页面','area.php');
}else
{
ShowMsg('编辑地区成功,将返回地区管理页面','area.php');
}
}
/*
function update()
*/
}elseif($action == 'update')
{
//print_r($names);exit;
$errinfo = '';
foreach($disorders as $key => $disorder)
{
$names[$key] = trim($names[$key]);
if($names[$key] == '' ){
$errinfo .= "id为 $key 的地区名称为空,未更新该条记录<br>";
continue;
}
$sql = "update #@__area set disorder=$disorder, name='$names[$key]' where id=$key";
$db->SetQuery($sql);
if(!$db->ExecuteNoneQuery())
{
$errinfo .= $sql."\n";
}
}
if(trim($errinfo) != '' )
{
ShowMsg($errinfo,'area.php');
}else
{
ShowMsg('更新地区成功,将返回地区管理页面','area.php');
}
/*
function delete()
*/
}elseif($action == 'delete')
{
if(empty($step))
{
include(dirname(__FILE__)."/templets/area.htm");
}elseif($step == 2)
{
$id = intval($id);
if($id < 1)
{
ShowMsg('地区编号不正确,将返回地区管理页面','area.php');
}else
{
$sql = "delete from #@__area where id=$id or reid=$id";
$db->SetQuery($sql);
if($db->ExecuteNoneQuery())
{
ShowMsg('删除地区成功,将返回地区管理页面', 'area.php');
}else
{
ShowMsg('删除地区失败,将返回地区管理页面 ','area.php');
}
}
}
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/area.php | PHP | asf20 | 3,928 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Data');
if(empty($dopost)) $dopost="";
$bkdir = dirname(__FILE__)."/".$cfg_backup_dir;
@ob_start();
@set_time_limit(0);
$gotojs="function GotoNextPage(){
document.gonext."."submit();
}"."\r\nset"."Timeout('GotoNextPage()',500);";
function PutInfo($msg1,$msg2)
{
$msginfo = "
<html>\n<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>DEDECMS 提示信息</title>
<base target='_self'/>\n</head>\n<body leftmargin='0' topmargin='0'>\n<center>
<br/>
<div style='width:400px;padding-top:4px;height:24;font-size:10pt;border-left:1px solid #cccccc;border-top:1px solid #cccccc;border-right:1px solid #cccccc;background-color:#DBEEBD;'>DEDECMS 提示信息!</div>
<div style='width:400px;height:100;font-size:10pt;border:1px solid #cccccc;background-color:#F4FAEB'>
<span style='line-height:160%'><br/>{$msg1}</span>
<br/><br/></div>\r\n{$msg2}";
echo $msginfo."</center>\n</body>\n</html>";
}
function RpLine($str){
$str = str_replace("\r","\\r",$str);
$str = str_replace("\n","\\n",$str);
return $str;
}
/*备份数据
function __bak_data();
*/
if($dopost=="bak")
{
if(empty($tablearr)){
ShowMsg('你没选中任何表!','javascript:;');
exit();
}
if(!is_dir($bkdir)){
MkdirAll($bkdir,$GLOBALS['cfg_dir_purview']);
CloseFtp();
}
//初始化使用到的变量
$tables = explode(',',$tablearr);
if(empty($isstruct)) $isstruct = 0;
if(empty($nowtable)) $nowtable = "";
if(empty($startpos)) $startpos = 0;
if(empty($fsize)) $fsize = 1024;
$fsizeb = $fsize * 1024;
//第一页的操作
if($nowtable=="")
{
$tmsg = "";
$dh = dir($bkdir);
while($filename=$dh->read()){
if(!ereg("txt$",$filename)) continue;
$filename = $bkdir."/$filename";
if(!is_dir($filename)) unlink($filename);
}
$dh->close();
$tmsg .= "清除备份目录旧数据完成...<br>";
if($isstruct==1){
$bkfile = $bkdir."/tables_struct_".substr(md5(time().mt_rand(1000,5000)),0,16).".txt";
$dsql = new DedeSql(false);
$mysql_version = $dsql->GetVersion();
$mysql_versions = explode(".",trim($mysql_version));
$mysql_version = $mysql_versions[0].".".$mysql_versions[1];
$fp = fopen($bkfile,"w");
foreach($tables as $t){
fwrite($fp,"DROP TABLE IF EXISTS `$t`;\r\n\r\n");
$dsql->SetQuery("SHOW CREATE TABLE ".$dsql->dbName.".".$t);
$dsql->Execute();
$row = $dsql->GetArray();
//根据数据库版本备份表结构
$eng1 = "ENGINE=MyISAM DEFAULT CHARSET=".$cfg_db_language;
$eng2 = "ENGINE=MyISAM AUTO_INCREMENT=([0-9]{1,}) DEFAULT CHARSET=".$cfg_db_language;
if($datatype==4.0 && $mysql_version > 4.0){
$tableStruct = eregi_replace($eng1,"TYPE=MyISAM",$row[1]);
$tableStruct = eregi_replace($eng2,"TYPE=MyISAM",$row[1]);
}
else if($datatype==4.1 && $mysql_version < 4.1){
$tableStruct = eregi_replace("TYPE=MyISAM",$eng1,$row[1]);
}else{
$tableStruct = $row[1];
}
fwrite($fp,"".$tableStruct.";\r\n\r\n");
}
fclose($fp);
$dsql->Close();
$tmsg .= "备份数据表结构信息完成...<br>";
}
$tmsg .= "<font color='red'>正在进行数据备份的初始化工作,请稍后...</font>";
$doneForm = "<form name='gonext' method='post'>
<input type='hidden' name='dopost' value='bak'>
<input type='hidden' name='isstruct' value='$isstruct'>
<input type='hidden' name='fsize' value='$fsize'>
<input type='hidden' name='tablearr' value='$tablearr'>
<input type='hidden' name='nowtable' value='".$tables[0]."'>
<input type='hidden' name='startpos' value='0'>
</form>
<script language='javascript'>$gotojs</script>\n";
PutInfo($tmsg,$doneForm);
exit();
}else{ //执行分页备份
$dsql = new DedeSql(false);
$j = 0;
$fs = "";
$bakStr = "";
//分析表里的字段信息
$dsql->GetTableFields($nowtable);
$intable = "INSERT INTO `$nowtable` VALUES(";
while($r = $dsql->GetFieldObject()){
$fs[$j] = trim($r->name); $j++;
}
$fsd = $j-1;
/*
$intable = "~sql:Insert Into $nowtable(";
while($r = $dsql->GetFieldObject()){
$fs[$j] = trim($r->name);
$intable .= $fs[$j].",";
$j++;
}
$fsd = $j-1;
$intable = ereg_replace(",$","",$intable).") Values(";
*/
//读取表的内容
$dsql->SetQuery("Select * From $nowtable");
$dsql->Execute();
$m = 0;
$bakfilename = "$bkdir/{$nowtable}_{$startpos}_".substr(md5(time().mt_rand(1000,5000)),0,16).".txt";
while($row2 = $dsql->GetArray())
{
if($m < $startpos){ $m++; continue; }
//检测数据是否达到规定大小
if(strlen($bakStr) > $fsizeb)
{
$fp = fopen($bakfilename,"w");
fwrite($fp,$bakStr);
fclose($fp);
$tmsg = "<font color='red'>完成到{$m}条记录的备份,继续备份{$nowtable}...</font>";
$doneForm = "<form name='gonext' method='post'>
<input type='hidden' name='dopost' value='bak'>
<input type='hidden' name='isstruct' value='$isstruct'>
<input type='hidden' name='fsize' value='$fsize'>
<input type='hidden' name='tablearr' value='$tablearr'>
<input type='hidden' name='nowtable' value='$nowtable'>
<input type='hidden' name='startpos' value='$m'>
</form><script language='javascript'>$gotojs</script>\n";
PutInfo($tmsg,$doneForm);
exit();
}
//正常情况
$line = $intable;
for($j=0;$j<=$fsd;$j++){
if($j < $fsd) $line .= "'".RpLine(addslashes($row2[$fs[$j]]))."',";
else $line .= "'".RpLine(addslashes($row2[$fs[$j]]))."');\r\n";
}
$m++;
$bakStr .= $line;
}
//如果数据比卷设置值小
if($bakStr!=""){
$fp = fopen($bakfilename,"w");
fwrite($fp,$bakStr);
fclose($fp);
}
for($i=0;$i<count($tables);$i++){
if($tables[$i]==$nowtable){
if(isset($tables[$i+1])){
$nowtable = $tables[$i+1];
$startpos = 0;
break;
}else{
$dsql->Close();
PutInfo("完成所有数据备份!","");
exit();
}
}
}
$tmsg = "<font color='red'>完成到{$m}条记录的备份,继续备份{$nowtable}...</font>";
$doneForm = "<form name='gonext' method='post'>
<input type='hidden' name='dopost' value='bak'>
<input type='hidden' name='isstruct' value='$isstruct'>
<input type='hidden' name='fsize' value='$fsize'>
<input type='hidden' name='tablearr' value='$tablearr'>
<input type='hidden' name='nowtable' value='$nowtable'>
<input type='hidden' name='startpos' value='$startpos'>
</form><script language='javascript'>$gotojs</script>\n";
PutInfo($tmsg,$doneForm);
exit();
}
//分页备份代码结束
}
/* 还原数据
function __re_data();
*/
else if($dopost=="redat")
{
if($bakfiles==""){
ShowMsg('没指定任何要还原的文件!','javascript:;');
exit();
}
$bakfilesTmp = $bakfiles;
$bakfiles = explode(',',$bakfiles);
if(empty($structfile)) $structfile = "";
if(empty($delfile)) $delfile = 0;
if(empty($startgo)) $startgo = 0;
if($startgo==0 && $structfile!=""){
$tbdata = "";
$fp = fopen("$bkdir/$structfile",'r');
while(!feof($fp)){
$tbdata .= fgets($fp,1024);
}
fclose($fp);
$querys = explode(';',$tbdata);
$dsql = new DedeSql(false);
foreach($querys as $q) $dsql->ExecuteNoneQuery(trim($q).';');
$dsql->Close();
if($delfile==1) @unlink("$bkdir/$structfile");
$tmsg = "<font color='red'>完成数据表信息还原,准备还原数据...</font>";
$doneForm = "<form name='gonext' method='post' action='sys_data_done.php?dopost=redat'>
<input type='hidden' name='startgo' value='1'>
<input type='hidden' name='delfile' value='$delfile'>
<input type='hidden' name='bakfiles' value='$bakfilesTmp'>
</form><script language='javascript'>$gotojs</script>\n";
PutInfo($tmsg,$doneForm);
exit();
}
else
{
$nowfile = $bakfiles[0];
$bakfilesTmp = ereg_replace($nowfile."[,]{0,1}","",$bakfilesTmp);
$oknum=0;
if( filesize("$bkdir/$nowfile") > 0 ){
$dsql = new DedeSql(false);
$fp = fopen("$bkdir/$nowfile",'r');
while(!feof($fp)){
$line = trim(fgets($fp,512*1024));
if($line=="") continue;
$rs = $dsql->ExecuteNoneQuery($line);
if($rs) $oknum++;
}
fclose($fp);
$dsql->Close();
}
if($delfile==1) @unlink("$bkdir/$nowfile");
if($bakfilesTmp==""){
ShowMsg('成功还原所的文件的数据!','javascript:;');
exit();
}
$tmsg = "成功还原{$nowfile}的{$oknum}条记录<br/><br/>正在准备还原其它数据...";
$doneForm = "<form name='gonext' method='post' action='sys_data_done.php?dopost=redat'>
<input type='hidden' name='startgo' value='1'>
<input type='hidden' name='delfile' value='$delfile'>
<input type='hidden' name='bakfiles' value='$bakfilesTmp'>
</form><script language='javascript'>$gotojs</script>\n";
PutInfo($tmsg,$doneForm);
exit();
}
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/sys_data_done.php | PHP | asf20 | 9,596 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_MakeHtml');
require_once(dirname(__FILE__)."/../include/inc_rss_view.php");
if(empty($tid)) $tid = 0;
if(empty($maxrecord)) $maxrecord = 50;
header("Content-Type: text/html; charset={$cfg_ver_lang}");
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select ID From #@__arctype where ID>'$tid' And ispart<2 order by ID asc limit 0,1;");
$dsql->Close();
if(!is_array($row)){
echo "完成所有文件更新!";
exit();
}
else{
$rv = new RssView($row['ID'],$maxrecord);
$rssurl = $rv->MakeRss();
$rv->Close();
$tid = $row['ID'];
ShowMsg("成功更新".$rssurl.",继续进行操作!","makehtml_rss_action.php?tid=$tid&maxrecord=$maxrecord",0,100);
exit();
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/makehtml_rss_action.php | PHP | asf20 | 787 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_plus');
$aid = ereg_replace("[^0-9]","",$aid);
if($dopost=="show")
{
$dsql = new DedeSql(false);
$dsql->SetQuery("update #@__plus set isshow=1 where aid='$aid';");
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功启用一个插件,请刷新导航菜单!","plus_main.php");
exit();
}
else if($dopost=="hide")
{
$dsql = new DedeSql(false);
$dsql->SetQuery("update #@__plus set isshow=0 where aid='$aid';");
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功禁用一个插件,请刷新导航菜单!","plus_main.php");
exit();
}
else if($dopost=="delete")
{
if(empty($job)) $job="";
if($job=="") //确认提示
{
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
$wintitle = "删除插件";
$wecome_info = "<a href='plus_main.php'>插件管理</a>::删除插件";
$win = new OxWindow();
$win->Init("plus_edit.php","js/blank.js","POST");
$win->AddHidden("job","yes");
$win->AddHidden("dopost",$dopost);
$win->AddHidden("aid",$aid);
$win->AddTitle("你确实要删除'".$title."'这个插件?");
$winform = $win->GetWindow("ok");
$win->Display();
exit();
}
else if($job=="yes") //操作
{
$dsql = new DedeSql(false);
$dsql->SetQuery("Delete From #@__plus where aid='$aid';");
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功删除一个插件,请刷新导航菜单!","plus_main.php");
exit();
}
}
else if($dopost=="saveedit") //保存更改
{
$dsql = new DedeSql(false);
$dsql->SetQuery("Update #@__plus set plusname='$plusname',menustring='$menustring',filelist='$filelist' where aid='$aid';");
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功更改插件的配置!","plus_main.php");
exit();
}
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__plus where aid='$aid'");
require_once(dirname(__FILE__)."/templets/plus_edit.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/plus_edit.php | PHP | asf20 | 2,042 |
<?php
require_once(dirname(__FILE__)."/config.php");
if(empty($ID)) $ID = 0;
if(empty($listtype)) $listtype="";
if(empty($dopost)) $dopost = "";
if(empty($channelid)) $channelid = 1;
$ID = intval($ID);
if($ID==0){ CheckPurview('t_New'); }
else{
CheckPurview('t_AccNew');
CheckCatalog($ID,"你无权在本栏目下创建子类!");
}
$dsql = new DedeSql(false);
//保存栏目
/*------------------------
function __SaveCatalog()
--------------------------*/
if($dopost=="save")
{
if(empty($reID)) $reID = 0;
if(empty($upinyin)) $upinyin = 0;
$description = Html2Text($description);
$keywords = Html2Text($keywords);
$tmpdir = $typedir;
if($ispart==3 && $typedir==''){
ShowMsg("你设置的栏目属性是跳转网址,请指定要跳转的网址!","-1");
exit();
}
if($ispart!=3) //非跳转网址处理栏目目录
{
//栏目的参照目录
if($reID==0 && $moresite==1) $nextdir = '/';
else{
if($referpath=='cmspath') $nextdir = '{cmspath}';
else if($referpath=='basepath') $nextdir = '';
else $nextdir = $nextdir;
}
//用拼音命名
if( $upinyin==1 || ( $typedir=='' && $sitepath=='' ) || ( $typedir=='' && $moresite==1 && $reID>0 ) )
{
$typedir = GetPinyin($typename);
}
$typedir = $nextdir."/".$typedir;
$typedir = ereg_replace("/{1,}","/",$typedir);
if($referpath=='basepath' && $siteurl!='') $typedir = '';
//检测二级网址
if($siteurl!="")
{
$siteurl = ereg_replace("/$","",$siteurl);
if(!eregi("http://",$siteurl)){
$dsql->Close();
ShowMsg("你绑定的二级域名无效,请用(http://域名)的形式!","-1");
exit();
}
if(eregi($cfg_basehost,$siteurl)){
$dsql->Close();
ShowMsg("你绑定的二级域名与当前站点是同一个域名,不需要绑定!","-1");
exit();
}
}
//创建目录
$true_typedir = str_replace("{cmspath}",$cfg_cmspath,$typedir);
$true_typedir = ereg_replace("/{1,}","/",$true_typedir);
if(!CreateDir($true_typedir,$siterefer,$sitepath))
{
$dsql->Close();
ShowMsg("创建目录 {$true_typedir} 失败,请检查你的路径是否存在问题!","-1");
exit();
}
}//非跳转网址处理栏目目录
if($channeltype == '-2') $isdefault = '-1';
//子分类
$sonlists = (empty($sonlists) ? '' : $sonlists);
$smalltypes = '';
if(is_array($sonlists) && isset($needson)){
$n = count($sonlists);
for($i=0;$i<$n;$i++){
if($i==($n-1)) $smalltypes .= $sonlists[$i];
else $smalltypes .= $sonlists[$i].",";
}
}
$in_query = "insert into #@__arctype(
reID,sortrank,typename,typedir,isdefault,defaultname,issend,channeltype,
tempindex,templist,temparticle,tempone,modname,namerule,namerule2,
ispart,corank,description,keywords,moresite,siterefer,sitepath,siteurl,ishidden,smalltypes)Values(
'$reID','$sortrank','$typename','$typedir','$isdefault','$defaultname','$issend','$channeltype',
'$tempindex','$templist','$temparticle','$tempone','default','$namerule','$namerule2',
'$ispart','$corank','$description','$keywords','$moresite','$siterefer','$sitepath','$siteurl','$ishidden','$smalltypes')";
if(!$dsql->ExecuteNoneQuery($in_query))
{
$dsql->Close();
ShowMsg("保存目录数据时失败,请检查你的输入资料是否存在问题!","-1");
exit();
}
//更新缓存
UpDateCatCache($dsql);
//如果选择子栏目可投稿,频道模型为可投稿
$topID = (empty($topID) ? '0' : $topID);
if($issend==1){
if($topID>0) $dsql->ExecuteNoneQuery("Update `#@__arctype` set issend='1' where ID='$topID'; ");
$dsql->ExecuteNoneQuery("Update `#@__channeltype` set issend='1' where ID='$channeltype'; ");
}
$dsql->Close();
$rndtime = time();
$rflwft = "
<script language='javascript'>
<!--
if(window.navigator.userAgent.indexOf('MSIE')>=1){
if(top.document.frames.menu.location.href.indexOf('catalog_menu.php')>=1)
{ top.document.frames.menu.location = 'catalog_menu.php?$rndtime'; }
}else{
if(top.document.getElementById('menu').src.indexOf('catalog_menu.php')>=1)
{ top.document.getElementById('menu').src = 'catalog_menu.php?$rndtime'; }
}
-->
</script>
";
//"--------------------
echo $rflwft;
ShowMsg("成功创建一个分类!","catalog_main.php");
exit();
}
//End dopost==save
//结束保存栏目事件
//--------------------------
//读取父类参数
//----------------------------
$myrow['moresite'] = $myrow['siterefer'] = $myrow['sitepath'] = $myrow['siteurl'] = '';
$issend = 1;
$corank = 0;
if($ID>0)
{
$myrow = $dsql->GetOne("Select #@__arctype.*,#@__channeltype.typename as ctypename From #@__arctype left join #@__channeltype on #@__channeltype.ID=#@__arctype.channeltype where #@__arctype.ID=$ID");
$issennd = $myrow['issend'];
$corank = $myrow['corank'];
$topID = $myrow['topID'];
$issend = $myrow['issend'];
$corank = $myrow['corank'];
$typedir = $myrow['typedir'];
}
//读取频道模型信息
if(isset($myrow['channeltype'])) $channelid = $myrow['channeltype'];
else $channelid = 1;
$row = $dsql->GetOne("select * from #@__channeltype where ID='$channelid'");
$nid = $row['nid'];
//读取所有模型资料
$dsql->SetQuery("select * from #@__channeltype where ID<>-1 And isshow=1 order by ID");
$dsql->Execute();
while($row=$dsql->GetObject())
{
$channelArray[$row->ID]['typename'] = $row->typename;
$channelArray[$row->ID]['nid'] = $row->nid;
}
//父栏目是否为二级站点
if(!empty($myrow['moresite'])){
$moresite = $myrow['moresite'];
}else{
$moresite = 0;
}
require_once(dirname(__FILE__)."/templets/catalog_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/catalog_add.php | PHP | asf20 | 5,956 |
<?php
require_once(dirname(__FILE__)."/config.php");
$dsql = new DedeSql(false);
require_once(DEDEADMIN."/templets/search_rule.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/search_rule.php | PHP | asf20 | 161 |
<?php
require(dirname(__FILE__)."/config.php");
CheckPurview('co_EditNote');
if(empty($job)) $job="";
if($job=="")
{
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
$wintitle = "更改采集规则";
$wecome_info = "<a href='co_main.php'><u>采集点管理</u></a>::更改采集规则";
$win = new OxWindow();
$win->Init("co_edit_text.php","js/blank.js","POST");
$win->AddHidden("job","yes");
$win->AddHidden("nid",$nid);
$win->AddTitle("文本配置专家更改模式:[<a href='co_edit.php?nid={$nid}'>使用可视化修改模式</a>]");
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__conote where nid='$nid' ");
$dsql->Close();
$win->AddMsgItem("<textarea name='notes' style='width:100%;height:500px' rows='20'>{$row['noteinfo']}</textarea>");
$winform = $win->GetWindow("ok");
$win->Display();
exit();
}
else
{
CheckPurview('co_EditNote');
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
$dtp = new DedeTagParse();
$dbnotes = $notes;
$notes = stripslashes($notes);
$dtp->LoadString($notes);
if(!is_array($dtp->CTags)){
ShowMsg("该规则不合法,无法保存!","-1");
$dsql->Close();
exit();
}
$ctag = $dtp->GetTagByName("item");
$query = "
Update #@__conote
set typeid='".$ctag->GetAtt('typeid')."',
gathername='".$ctag->GetAtt('name')."',
language='".$ctag->GetAtt('language')."',
lasttime=0,
savetime='".time()."',
noteinfo='".$dbnotes."'
where nid = $nid;
";
$dsql = new DedeSql(false);
$rs = $dsql->ExecuteNoneQuery($query);
$dsql->Close();
ShowMsg("成功保存规则!","co_main.php");
exit();
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/co_edit_text.php | PHP | asf20 | 1,877 |
<?php
require(dirname(__FILE__)."/config.php");
ClearAllLink();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Top</title>
<link href="css_top.css" rel="stylesheet" type="text/css" />
<script language='javascript'>
function $Nav(){
if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE';
else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF';
else return "OT";
}
var preID = 0;
function OpenMenu(cid,lurl,rurl,bid){
if($Nav()=='IE'){
if(rurl!='') top.document.frames.main.location = rurl;
if(cid > -1) top.document.frames.menu.location = 'index_menu.php?c='+cid;
else if(lurl!='') top.document.frames.menu.location = lurl;
if(bid>0) document.getElementById("d"+bid).className = 'thisclass';
if(preID>0 && preID!=bid) document.getElementById("d"+preID).className = '';
preID = bid;
}else{
if(rurl!='') top.document.getElementById("main").src = rurl;
if(cid > -1) top.document.getElementById("menu").src = 'index_menu.php?c='+cid;
else if(lurl!='') top.document.getElementById("menu").src = lurl;
if(bid>0 && bid!=9) document.getElementById("d"+bid).className = 'thisclass';
if(preID>0) document.getElementById("d"+preID).className = '';
preID = bid;
}
}
var preFrameW = '160,*';
var FrameHide = 0;
function ChangeMenu(way){
var addwidth = 10;
var fcol = top.document.all.bodyFrame.cols;
if(way==1) addwidth = 10;
else if(way==-1) addwidth = -10;
else if(way==0){
if(FrameHide == 0){
preFrameW = top.document.all.bodyFrame.cols;
top.document.all.bodyFrame.cols = '0,*';
FrameHide = 1;
return;
}else{
top.document.all.bodyFrame.cols = preFrameW;
FrameHide = 0;
return;
}
}
fcols = fcol.split(',');
fcols[0] = parseInt(fcols[0]) + addwidth;
top.document.all.bodyFrame.cols = fcols[0]+',*';
}
function resetBT(){
if(preID>0) document.getElementById("d"+preID).className = 'bdd';
preID = 0;
}
</script>
</head>
<body>
<div class="topnav">
<div class="sitenav">
<div class="welcome">
你好:<span class="username"><?php echo $cuserLogin->getUserName()?> </span>,欢迎使用Dedecms。
</div>
<div class="welcome">
<a href="javascript:ChangeMenu(-1)"><img src='img/frame-l.gif' border='0' alt="减小左框架"></a>
<a href="javascript:ChangeMenu(0)"><img src='img/frame_on.gif' border='0' alt="隐藏/显示左框架"></a>
<a href="javascript:ChangeMenu(1)" title="增大左框架"><img src='img/frame-r.gif' border='0' alt="增大左框架"></a>
</div>
<div class="sitelink">
<a href="javascript:OpenMenu(9,'','index_body.php',0)">管理主页</a> |
<a href="javascript:OpenMenu(0,'index_menu.php','',0)">功能菜单</a> |
<a href="http://www.dedecms.com/archives/templethelp/help/index.htm" target="_blank">帮助</a> |
<a href="../" target="_blank">网站主页</a> |
<a href="exit.php" target="_parent">注销登录</a>
</div>
</div>
<div class="leftnav">
<ul>
<li class="navleft"></li>
<li id='d1'><a href="javascript:OpenMenu(1,'','catalog_main.php',1)">频道管理</a></li>
<li id='d2'><a href="javascript:OpenMenu(-1,'catalog_menu.php','public_guide.php',2)">内容发布</a></li>
<li id='d3'><a href="javascript:OpenMenu(2,'','content_list.php',3)">内容维护</a></li>
<li id='d4'><a href="javascript:OpenMenu(3,'','makehtml_homepage.php',4)">HTML更新</a></li>
<li id='d10'><a href="javascript:OpenMenu(10,'','file_manage_main.php?activepath=/templets',10)">模板管理</a></li>
<li id='d5'><a href="javascript:OpenMenu(4,'','member_main.php',5)">核心模块</a></li>
<li id='d7'><a href="javascript:OpenMenu(6,'','module_main.php',7)">扩展模块</a></li>
<li id='d6'><a href="javascript:OpenMenu(5,'','plus_main.php',6)">辅助插件</a></li>
<li id='d8'><a href="javascript:OpenMenu(7,'','sys_info.php',8)">系统管理</a></li>
<li class="navright"></li>
</ul>
</div>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/lic/index_top.php | PHP | asf20 | 4,260 |
<?php
@ob_start();
@set_time_limit(3600);
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_Keyword');
if(empty($action))
{
require_once(dirname(__FILE__)."/templets/description_fetch.htm");
exit;
}
?> | zyyhong | trunk/jiaju001/news/lic/description_fetch.php | PHP | asf20 | 234 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('plus_站内新闻发布');
if(empty($dopost)) $dopost = "";
if($dopost=="save")
{
$dsql = new DedeSql(false);
$dtime = GetMkTime($sdate);
$query = "
Insert Into #@__mynews(title,writer,senddate,body)
Values('$title','$writer','$dtime','$body')
";
$dsql->SetQuery($query);
$dsql->ExecuteNoneQuery();
$dsql->Close();
ShowMsg("成功发布一条站内新闻!","mynews_main.php");
exit();
}
require_once(dirname(__FILE__)."/templets/mynews_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mynews_add.php | PHP | asf20 | 581 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_typelink.php");
$dsql = new DedeSql(false);
require_once(dirname(__FILE__)."/templets/mytag_tag_guide.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/mytag_tag_guide.php | PHP | asf20 | 239 |
<?php
global $allmodules;
$GLOBALS['allmodules']['1a1e82f369aebc58d24a18d9d2dfba2e']='1a1e82f369aebc58d24a18d9d2dfba2e.dev';
$GLOBALS['allmodules']['589f328921a4b83fe8f12877e2be6c8d']='589f328921a4b83fe8f12877e2be6c8d.dev';
$GLOBALS['allmodules']['7898d3a521cacad9dce3fa9db19d6a1b']='7898d3a521cacad9dce3fa9db19d6a1b.dev';
?> | zyyhong | trunk/jiaju001/news/lic/module/modulescache.php | PHP | asf20 | 330 |
<div style='padding-left:20px;line-height:150%'>
<p>版权所有 (c)2003-2007,DedeCms.com 保留所有权利。 </p>
<p>感谢您选择织梦内容管理系统(以下简称DedeCms),DedeCms是目前国内最强大、最稳定的中小型门户网站建设解决方案之一,居于 PHP + MySQL 的技术开发,全部源码开放。DedeCms 的官方网址是: www.dedecms.com 交流论坛: bbs.dedecms.com</p>
<p>为了使你正确并合法的使用本软件,请你在使用前务必阅读清楚下面的协议条款:</p>
<p><strong>一、本授权协议适用且仅适用于 DedeCms 5.x.x 版本,DedeCms官方对本授权协议的最终解释权。 </strong></p>
<p><strong>二、协议许可的权利 </strong><br />
1、您可以在完全遵守本最终用户授权协议的基础上,将本软件应用于非商业用途,而不必支付软件版权授权费用。 <br />
2、您可以在协议规定的约束和限制范围内修改 DedeCms 源代码或界面风格以适应您的网站要求。 <br />
3、您拥有使用本软件构建的网站全部内容所有权,并独立承担与这些内容的相关法律义务。 <br />
4、获得商业授权之后,您可以将本软件应用于商业用途,同时依据所购买的授权类型中确定的技术支持内容,自购买时刻起,在技术支持期限内拥有通过指定的方式获得指定范围内的技术支持服务。商业授权用户享有反映和提出意见的权力,相关意见将被作为首要考虑,但没有一定被采纳的承诺或保证。 </p>
<p><strong>二、协议规定的约束和限制 </strong><br />
1、未获商业授权之前,不得将本软件用于商业用途(包括但不限于企业网站、经营性网站、以营利为目的或实现盈利的网站)。购买商业授权请登陆 bbs.dedecms.com 了解最新说明。 <br />
2、未经官方许可,不得对本软件或与之关联的商业授权进行出租、出售、抵押或发放子许可证。 <br />
3、不管你的网站是否整体使用 DedeCms ,还是部份栏目使用 DedeCms,在你使用了 DedeCms 的网站主页上必须加上 DedeCms 官方网址(www.dedecms.com)的链接。 <br />
4、未经官方许可,禁止在 DedeCms 的整体或任何部分基础上以发展任何派生版本、修改版本或第三方版本用于重新分发。 <br />
5、如果您未能遵守本协议的条款,您的授权将被终止,所被许可的权利将被收回,并承担相应法律责任。 </p>
<p><strong>三、有限担保和免责声明 </strong><br />
1、本软件及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。 <br />
2、用户出于自愿而使用本软件,您必须了解使用本软件的风险,在尚未购买产品技术服务之前,我们不承诺对免费用户提供任何形式的技术支持、使用担保,也不承担任何因使用本软件而产生问题的相关责任。 <br />
3、电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦开始确认本协议并安装 DedeCms,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。 <br />
4、如果本软件带有其它软件的整合API示范例子包,这些文件版权不属于本软件官方,并且这些文件是没经过授权发布的,请参考相关软件的使用许可合法的使用。</p>
<p>协议发布时间: 2007年12月1日 By DedeCms.com</p>
<p> </p> | zyyhong | trunk/jiaju001/news/lic/module/readme.php | PHP | asf20 | 3,820 |
这目录用于存放zip解压缩的临时文件 | zyyhong | trunk/jiaju001/news/lic/module/ziptmp/index.html | HTML | asf20 | 48 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_SoftConfig');
if(empty($dopost)) $dopost = "";
//保存
$dsql = new DedeSql(false);
$upok = '';
if($dopost=="save")
{
$query = "UPDATE `#@__softconfig` SET downtype = '$downtype' , showlocal = '$showlocal',
gotojump='$gotojump' , ismoresite = '$ismoresite',sites = '$sites'";
$dsql->SetQuery($query);
$dsql->ExecuteNoneQuery();
$upok = "<font color='red'>成功保存更改!</font>";
}
//读取参数
$row = $dsql->GetOne("select * From #@__softconfig");
if(!is_array($row)){
$dsql->ExecuteNoneQuery("INSERT INTO `#@__softconfig` ( `downtype` , `ismoresite` ,`showlocal` , `gotojump` , `sites` ) VALUES ('0', '0','0' , '0', '');");
$row['downtype']=1;
$row['ismoresite']=0;
$row['sites']="";
$row['gotojump']=0;
}
require_once(dirname(__FILE__)."/templets/soft_config.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/soft_config.php | PHP | asf20 | 918 |
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('member_Type');
if(empty($dopost)) $dopost = "";
$dsql = new DedeSql(false);
//保存更改
//--------------------
if($dopost=="save")
{
$startID = 1;
$endID = $idend;
for(;$startID<=$endID;$startID++){
$query = '';
$aid = ${'ID_'.$startID};
$pname = ${'pname_'.$startID};
$rank = ${'rank_'.$startID};
$money = ${'money_'.$startID};
$exptime = ${'exptime_'.$startID};
if(isset(${'check_'.$startID})){
if($pname!='') $query = "update #@__member_type set pname='$pname',money='$money',rank='$rank',exptime='$exptime' where aid='$aid'";
}
else{
$query = "Delete From #@__member_type where aid='$aid' ";
}
if($query!=''){
$dsql->ExecuteNoneQuery($query);
}
}
//增加新记录
if(isset($check_new) && $pname_new!=''){
$query = "Insert Into #@__member_type(rank,pname,money,exptime) Values('{$rank_new}','{$pname_new}','{$money_new}','{$exptime_new}');";
$dsql->ExecuteNoneQuery($query);
}
header("Content-Type: text/html; charset={$cfg_ver_lang}");
echo "<script> alert('成功更新会员产品分类表!'); </script>";
}
$arcranks = array();
$dsql->SetQuery("Select * From #@__arcrank where rank>10 ");
$dsql->Execute();
while($row=$dsql->GetArray()){ $arcranks[$row['rank']] = $row['membername']; }
$times = array();
$dsql->SetQuery("Select * From #@__member_time order by mday asc ");
$dsql->Execute();
while($row=$dsql->GetArray()){ $times[$row['mday']] = $row['tname']; }
require_once(dirname(__FILE__)."/templets/member_type.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/member_type.php | PHP | asf20 | 1,712 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/pub_collection.php");
if($nid=="")
{
ShowMsg("参数无效!","-1");
exit();
}
$co = new DedeCollection();
$co->Init();
$co->LoadFromDB($nid);
$dsql = new DedeSql(false);
$dsql->SetSql("Select count(aid) as dd From #@__courl where nid='$nid'");
$dsql->Execute();
$row = $dsql->GetObject();
$dd = $row->dd;
$dsql->Close();
if($dd==0)
{
$unum = "没有记录或从来没有采集过这个节点!";
}
else
{
$unum = "共有 $dd 个历史种子网址!<a href='javascript:SubmitNew();'>[<u>更新种子网址,并采集</u>]</a>";
}
require_once(dirname(__FILE__)."/templets/co_gather_start.htm");
$co->Close();
ClearAllLink();
?>
| zyyhong | trunk/jiaju001/news/lic/co_gather_start.php | PHP | asf20 | 765 |
<!--
a:link { font-size: 10pt; text-decoration: none;color:#000000; font-family: 宋体}
a:visited { font-size: 10pt; color: #3C3C3C; text-decoration: none; font-family: 宋体}
a:hover { color: red;font-family: 宋体}
td { font-size: 10pt; color: #2F2F2F; line-height:160%; font-family: 宋体}
body { font-size: 10pt; color: #2F2F2F; line-height:160%; font-family: 宋体}
input { border: 1px solid #000000; font-family: 宋体}
.input_img {font-size: 9pt;border: 0px solid #ffffff; font-family: 宋体}
--> | zyyhong | trunk/jiaju001/news/lic/img/base.css | CSS | asf20 | 560 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>颜色选框</title>
</head>
<body bgcolor="#C4C4B4" leftmargin="0" topmargin="0">
<script language="javascript">
function ColorSel(col){
window.returnValue = col;
window.close();
}
</script>
<table width="100" border="0" cellspacing="1" cellpadding="1" style="CURSOR: hand" align="center">
<tr>
<td bgcolor="#FF0000" onClick="ColorSel('#FF0000');" width="20%"> </td>
<td bgcolor="#0000FF" onClick="ColorSel('#0000FF');" width="20%"> </td>
<td bgcolor="#006600" onClick="ColorSel('#006600');" width="20%"> </td>
<td bgcolor="#333333" onClick="ColorSel('#333333');" width="20%"> </td>
<td bgcolor="#FFFF00" onClick="ColorSel('#FFFF00');" width="20%"> </td>
</tr>
<tr>
<td bgcolor="#CC0000" onClick="ColorSel('#CC0000');"> </td>
<td bgcolor="#0033CC" onClick="ColorSel('#0033CC');"> </td>
<td bgcolor="#339900" onClick="ColorSel('#339900');"> </td>
<td bgcolor="#666666" onClick="ColorSel('#666666');"> </td>
<td bgcolor="#FFCC33" onClick="ColorSel('#FFCC33');"> </td>
</tr>
<tr>
<td bgcolor="#990000" onClick="ColorSel('#990000');"> </td>
<td bgcolor="#000099" onClick="ColorSel('#000099');"> </td>
<td bgcolor="#33CC00" onClick="ColorSel('#33CC00');"> </td>
<td bgcolor="#999999" onClick="ColorSel('#999999');"> </td>
<td bgcolor="#FF6633" onClick="ColorSel('#FF6633');"> </td>
</tr>
<tr>
<td bgcolor="#660000" onClick="ColorSel('#660000');"> </td>
<td bgcolor="#330099" onClick="ColorSel('#330099');"> </td>
<td bgcolor="#66FF00" onClick="ColorSel('#66FF00');"> </td>
<td bgcolor="#CCCCCC" onClick="ColorSel('#CCCCCC');"> </td>
<td bgcolor="#FFFFFF" onClick="ColorSel('');" align="center" style='font-size:9pt'>无</td>
</tr>
</table>
</body>
</html>
| zyyhong | trunk/jiaju001/news/lic/img/color.htm | HTML | asf20 | 1,988 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/pub_collection.php");
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
isset($_COOKIE['ENV_GOBACK_URL']) ? $backurl = $_COOKIE['ENV_GOBACK_URL'] : $backurl = "co_url.php";
if(empty($action)) $action="";
if($aid=="") {
ShowMsg("参数无效!","-1");
exit();
}
//保存更改
if($action=="save"){
$dsql = new DedeSql(false);
$result = "";
for($i=0;$i < $endid;$i++){
$result .= "{dede:field name=\\'".${"noteid_$i"}."\\'}".${"value_$i"}."{/dede:field}\r\n";
}
$dsql->ExecuteNoneQuery("Update #@__courl set result='$result' where aid='$aid'; ");
$dsql->Close();
ShowMsg("成功保存一条记录!",$backurl);
exit();
}
$dsql = new DedeSql(false);
$dsql->SetSql("Select * from #@__courl where aid='$aid'");
$dsql->Execute();
$row = $dsql->GetObject();
$isdown = $row->isdown;
$nid = $row->nid;
$url = $row->url;
$dtime = $row->dtime;
$body = $row->result;
$dsql->Close();
$fields = array();
if($isdown==0)
{
$co = new DedeCollection();
$co->Init();
$co->LoadFromDB($nid);
$co->DownUrl($aid,$url);
$co->dsql->SetSql("Select * from #@__courl where aid='$aid'");
$co->dsql->Execute();
$row = $co->dsql->GetObject();
$isdown = $row->isdown;
$nid = $row->nid;
$url = $row->url;
$dtime = $row->dtime;
$body = $row->result;
$co->Close();
}
$dtp = new DedeTagParse();
$dtp->SetNameSpace("dede","{","}");
$dtp->LoadString($body);
require_once(dirname(__FILE__)."/templets/co_view.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/co_view.php | PHP | asf20 | 1,594 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/inc_channel_unit_functions.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
CheckPurview('c_FreeList');
$dsql = new DedeSql(false);
if(empty($pagesize)) $pagesize = 18;
if(empty($pageno)) $pageno = 1;
if(empty($dopost)) $dopost = '';
if(empty($orderby)) $orderby = 'aid';
if(empty($keyword)){
$keyword = '';
$addget = '';
$addsql = '';
}else{
$addget = '&keyword='.urlencode($keyword);
$addsql = " where title like '%$keyword%' ";
}
//重载列表
if($dopost=='getlist'){
AjaxHead();
GetTagList($dsql,$pageno,$pagesize,$orderby);
$dsql->Close();
exit();
}
//删除字段
else if($dopost=='del')
{
$aid = ereg_replace("[^0-9]","",$aid);
$dsql->ExecuteNoneQuery("Delete From #@__freelist where aid='$aid'; ");
AjaxHead();
GetTagList($dsql,$pageno,$pagesize,$orderby);
$dsql->Close();
exit();
}
//第一次进入这个页面
if($dopost==''){
$row = $dsql->GetOne("Select count(*) as dd From #@__freelist $addsql ");
$totalRow = $row['dd'];
include(dirname(__FILE__)."/templets/freelist_main.htm");
$dsql->Close();
}
//获得特定的Tag列表
//---------------------------------
function GetTagList($dsql,$pageno,$pagesize,$orderby='aid'){
global $cfg_phpurl,$addsql;
$start = ($pageno-1) * $pagesize;
$printhead ="<table width='96%' border='0' cellpadding='1' cellspacing='1' align='center' style='margin:0px auto' class='tblist'>
<tr align='center'>
<td width='5%' class='tbsname'><a href='#' onclick=\"ReloadPage('aid')\"><u>ID</u></a></td>
<td width='20%' class='tbsname'>列表名称</td>
<td width='20%' class='tbsname'>模板文件</td>
<td width='5%' class='tbsname'><a href='#' onclick=\"ReloadPage('click')\"><u>点击</u></a></td>
<td width='15%' class='tbsname'>创建时间</td>
<td class='tbsname'>管理</td>
</tr>\r\n";
echo $printhead;
$dsql->SetQuery("Select aid,title,templet,click,edtime,namerule,listdir,defaultpage,nodefault From #@__freelist $addsql order by $orderby desc limit $start,$pagesize ");
$dsql->Execute();
while($row = $dsql->GetArray()){
$listurl = GetFreeListUrl($row['aid'],$row['namerule'],$row['listdir'],$row['defaultpage'],$row['nodefault']);
$line = "
<tr align='center' onMouseMove=\"javascript:this.bgColor='#FCFEDA';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">
<td>{$row['aid']}</td>
<td> <a href='$listurl' target='_blank'>{$row['title']}</a> </td>
<td> {$row['templet']} </td>
<td> {$row['click']} </td>
<td>".strftime("%y-%m-%d",$row['edtime'])."</td>
<td>
<a href='#' onclick='EditNote({$row['aid']})'>更改</a> |
<a href='#' onclick='CreateNote({$row['aid']})'>更新</a> |
<a href='#' onclick='DelNote({$row['aid']})'>删除</a>
</td>
</tr>";
echo $line;
}
echo "</table>\r\n";
}
?>
| zyyhong | trunk/jiaju001/news/lic/freelist_main.php | PHP | asf20 | 3,027 |
<?php
require(dirname(__FILE__)."/config.php");
require(dirname(__FILE__)."/../include/inc_photograph.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DedeCms Home</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="color:#FF6600; line-height:31px;"><strong>欢迎使用国内最专业的PHP网站管理系统,轻松建站的首选利器 -- <?php echo $cfg_softname?></strong></td>
</tr>
</table>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">DedeCms最新消息</div>
</div>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><form name="uploadspider" action="upload_spider.php" method="post">
<td height="80" class="main_dnews">
<?php echo GetNewInfo()?> </td>
</form>
</tr>
</table>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">快捷功能</div>
</div>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="60" align="center">
<table width="96%" border="0" cellspacing="10" cellpadding="0" style="margin-top:10px;">
<tr class="main_qbut">
<td width="16%" align="center"><div style="background-position:center 10px;"><a href="catalog_main.php">栏目管理</a></div></td>
<td width="16%" align="center"><div style="background-position:center -130px;"><a href="catalog_menu.php" target="menu">发布文档</a></div></td>
<td width="16%" align="center"><div style="background-position:center -270px;"><a href="content_list.php?arcrank=-1">待审核文档</a></div></td>
<td width="16%" align="center"><div style="background-position:center -414px;"><a href="feedback_main.php">评论管理 </a></div></td>
<td width="16%" align="center"><div style="background-position:center -554px;"><a href="makehtml_list.php">更新HTML</a></div></td>
<td width="16%" align="center"><div style="background-position:center -694px;"><a href="sys_info.php">更改系统参数 </a></div></td>
<td width="4%" align="center"> </td>
</tr>
</table>
</td>
</tr>
</table>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">系统基本信息</div>
</div>
<table width="96%" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#E2F5BC" style="margin-top:6px;">
<tr>
<td align="right" bgcolor="#F9FFE6" class="main_bleft">你的级别:</td>
<td bgcolor="#FFFFFF" class="main_bright"><strong>
<?php
if($cuserLogin->getUserType()==10) echo "总管理员";
else if($cuserLogin->getUserType()==5) echo "频道总编";
else echo "信息采集员或其它管理员";
?></strong></td>
</tr>
<tr>
<td width="22%" rowspan="5" align="right" bgcolor="#F9FFE6" class="main_bleft">PHP环境摘要:</td>
<td bgcolor="#FFFFFF" class="main_bright"><strong>PHP版本:</strong> <?php echo @phpversion();?> <strong>GD版本:</strong> <?php echo @gdversion()?> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="main_bright"><strong>是否安全模式:</strong> <?php echo ($cfg_isSafeMode ? 'On' : 'Off')?> <?php
if($cfg_isSafeMode) echo "<br> <font color='blue'>由于你的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改“<a href='sys_info.php'><u>更改系统参数</u></a>”里的FTP选项,并选择用FTP形式创建目录,完成后:<a href='testenv.php' style='color:red'><u>点击此进行一次DedeCms目录权限检测>></u></a></font>";
else echo " <a href='testenv.php' style='color:blue'><u>如果你第一次进入本系统,建议点击此进行一次DedeCms目录权限检测>></u></a></font>";
?></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="main_bright"><strong>Register_Globals:</strong> <?php echo ini_get("register_globals") ? 'On' : 'Off'?> <strong>Magic_Quotes_Gpc:</strong> <?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?> </td>
</tr>
<tr>
<td width="78%" bgcolor="#FFFFFF" class="main_bright"><strong>支持上传的最大文件:</strong> <?php echo ini_get("post_max_size")?> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" class="main_bright"><strong>是否允许打开远程连接:</strong> <?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'?> </td>
</tr>
<tr>
<td align="right" bgcolor="#F9FFE6" class="main_bleft">系统摘要:</td>
<td bgcolor="#FFFFFF" class="main_bright"><strong>档案总数:</strong>
<?php
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select count(ID) as cc From #@__archives");
$dsql->Close();
echo $row['cc'];
?>
</td>
</tr>
<tr>
<td align="right" bgcolor="#F9FFE6" class="main_bleft">软件版本信息:</td>
<td bgcolor="#FFFFFF" class="main_bright"><strong>版本名称:</strong><?php echo $cfg_soft_enname?><strong> 版本号:</strong><?php echo $cfg_version?></td>
</tr>
<tr>
<td align="right" bgcolor="#F9FFE6" class="main_bleft">开发团队:</td>
<td bgcolor="#FFFFFF" class="main_bright"><?php echo $cfg_soft_devteam?></td>
</tr>
</table>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">使用帮助</div>
</div>
<table width="96%" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#E2F5BC" style="margin-top:6px;">
<tr>
<td width="22%" align="right" bgcolor="#F9FFE6" class="main_bleft">官方论坛:</td>
<td width="78%" bgcolor="#FFFFFF" class="main_bright"><a href="http://bbs.dedecms.com">http://bbs.dedecms.com </a></td>
</tr>
<tr>
<td align="right" bgcolor="#F9FFE6" class="main_bleft">模板标记参考:</td>
<td bgcolor="#FFFFFF" class="main_bright"><a href="http://www.dedecms.com/archives/templethelp/help/index.htm">http://www.dedecms.com/archives/templethelp/help/index.htm</a></td>
</tr>
</table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" style="line-height:51px;"><?php echo $cfg_powerby?><br /></td>
</tr>
</table>
</body>
</html>
<?php ClearAllLink(); ?> | zyyhong | trunk/jiaju001/news/lic/index_body.php | PHP | asf20 | 6,758 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
$dsql = new DedeSql(false);
if(empty($action)) $action = '';
//设置某频道为默认发布
/*--------------------
function __SetDefault();
----------------------*/
if($action=='setdefault'){
CheckPurview('sys_Edit');
$dsql = new DedeSql(false);
$dsql->ExecuteNoneQuery("Update `#@__channeltype` set isdefault=0 where ID<>'$cid'");
if($cid!=0) $dsql->ExecuteNoneQuery("Update `#@__channeltype` set isdefault=1 where ID='$cid'");
$dsql->Close();
$win = new OxWindow();
$win->Init();
$win->mainTitle = "内容发布向导";
$win->AddTitle("内容发布向导 >> 设置默认发布表单");
if($cid==0)
{
$msg = "
成功取消默认发布表单!
<hr style='width:90%' size='1' />
你目前想要进行的操作: <a href='public_guide.php?action=edit'>返回发布向导页</a>
";
}
else
{
$msg = "
成功保存默认发布表单,以后点击“内容发布”面板将直接跳转到你选择的内容发布页!
<hr style='width:90%' size='1' />
你目前想要进行的操作: <a href='public_guide.php'>转到默认发布表单</a> <a href='public_guide.php?action=edit'>返回发布向导页</a>
";
}
$win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>$msg</div>");
$winform = $win->GetWindow("hand");
$win->Display();
exit();
}
//获取频道栏目数
function GetCatalogs(&$dsql,$cid)
{
$row = $dsql->GetOne("Select count(*) as dd From `#@__arctype` where channeltype='$cid' ");
return (!is_array($row) ? '0' : $row['dd']);
}
//以下为正常浏览的内容
/*--------------------
function __PageShow();
----------------------*/
$row = $dsql->GetOne("Select ID,addcon From `#@__channeltype` where isdefault='1' ");
//已经设置了默认发布表单
if(is_array($row) && $action!='edit')
{
$addcon = $row['addcon'];
if($addcon=='') $addcon='archives_add.php';
$channelid = $row['ID'];
$cid = 0;
require_once(DEDEADMIN.'/'.$addcon);
exit();
}
//没有设置默认发布表单
else
{
$dsql->SetQuery("Select ID,typename,mancon,isdefault,maintable From `#@__channeltype` where ID<>-1 And isshow=1 ");
$dsql->Execute();
require_once(DEDEADMIN.'/templets/public_guide.htm');
}
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/public_guide.php | PHP | asf20 | 2,413 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEADMIN."/inc/inc_catalog_options.php");
require_once(DEDEADMIN."/../include/pub_dedetag.php");
require_once(DEDEADMIN."/inc/inc_archives_functions.php");
if(!isset($cid)) $cid=0;
else $cid = trim(ereg_replace("[^0-9]","",$cid));
if(!isset($channelid)) $channelid=0;
else $channelid = trim(ereg_replace("[^0-9]","",$channelid));
if(!$cid>0 && !$channelid>0)
{
ShowMsg("你没指定栏目ID或频道ID,不允许访问本页面!","-1");
exit();
}
$dsql = new DedeSql(false);
if($cid>0)
{
$query = "Select t.typename as arctypename,c.* From #@__arctype t left join #@__channeltype c on c.ID=t.channeltype where t.ID='$cid' ";
$cInfos = $dsql->GetOne($query);
$channelid = $cInfos['ID'];
$addtable = $cInfos['addtable'];
}
else if($channelid>0)
{
$query = " Select * From #@__channeltype where ID='$channelid'";
$cInfos = $dsql->GetOne($query);
$channelid = $cInfos['ID'];
$addtable = $cInfos['addtable'];
}
require_once(dirname(__FILE__)."/templets/archives_add.htm");
ClearAllLink();
?> | zyyhong | trunk/jiaju001/news/lic/archives_add.php | PHP | asf20 | 1,114 |
<?php
require_once(dirname(__FILE__)."/config.php");
require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php");
require_once(dirname(__FILE__)."/../include/inc_functions.php");
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
$where = "";
$sql = "";
if(!isset($nid)) $nid="";
if(!empty($nid)) $where = " where #@__courl.nid='$nid' ";
if(empty($small)) $small = 0;
function IsDownLoad($isd){
if($isd=="0") return "未下载";
else return "已下载";
}
function IsExData($isex){
if($isex==0) return "未导出";
else return "已导出";
}
if($nid!=""){
$exportbt = "<input type='button' name='b0' value='导出采集内容' class='inputbut' style='width:100' onClick=\"location.href='co_export.php?nid=$nid';\"> ";
}
else{
$exportbt = "";
}
$sql .= "Select #@__courl.aid,#@__courl.nid,#@__courl.isex,#@__courl.title,#@__courl.url,";
$sql .= "#@__courl.dtime,#@__courl.isdown,#@__conote.gathername From #@__courl ";
$sql .= " left join #@__conote on #@__conote.nid=#@__courl.nid $where";
$sql .= " order by #@__courl.aid desc";
$dlist = new DataList();
$dlist->Init();
$dlist->SetParameter("nid",$nid);
$dlist->SetParameter("small",$small);
$dlist->SetSource($sql);
if($small==0) include(dirname(__FILE__)."/templets/co_url.htm");
else include(dirname(__FILE__)."/templets/co_url_2.htm");
$dlist->Close();
ClearAllLink();
?>
| zyyhong | trunk/jiaju001/news/lic/co_url.php | PHP | asf20 | 1,404 |