@@ -17,7 +17,7 @@ if (empty($imgstick)) { | |||||
$imgstick = ''; | $imgstick = ''; | ||||
} | } | ||||
$noeditor = isset($noeditor) ? $noeditor : ''; | $noeditor = isset($noeditor) ? $noeditor : ''; | ||||
$iseditor = isset($iseditor) ? $iseditor : ''; | |||||
$iseditor = isset($iseditor) ? intval($iseditor) : ''; | |||||
$activepath = str_replace('.', '', $activepath); | $activepath = str_replace('.', '', $activepath); | ||||
$activepath = preg_replace("#\/{1,}#", '/', $activepath); | $activepath = preg_replace("#\/{1,}#", '/', $activepath); | ||||
if (strlen($activepath) < strlen($cfg_image_dir)) { | if (strlen($activepath) < strlen($cfg_image_dir)) { | ||||
@@ -142,6 +142,7 @@ html{background:#f5f5f5} | |||||
<input type="hidden" name="activepath" value="<?php echo $activepath ?>"> | <input type="hidden" name="activepath" value="<?php echo $activepath ?>"> | ||||
<input type="hidden" name="f" value="<?php echo $f ?>"> | <input type="hidden" name="f" value="<?php echo $f ?>"> | ||||
<input type="hidden" name="v" value="<?php echo $v ?>"> | <input type="hidden" name="v" value="<?php echo $v ?>"> | ||||
<input type="hidden" name="iseditor" value="<?php echo $iseditor ?>"> | |||||
<input type="hidden" name="imgstick" value="<?php echo $imgstick ?>"> | <input type="hidden" name="imgstick" value="<?php echo $imgstick ?>"> | ||||
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>"> | <input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1;?>"> | ||||
<input type="hidden" name="job" value="upload"> | <input type="hidden" name="job" value="upload"> | ||||
@@ -43,6 +43,7 @@ if (!is_dir($cfg_basedir.$activepath."/$mdir")) { | |||||
MkdirAll($cfg_basedir.$activepath."/$mdir", $cfg_dir_purview); | MkdirAll($cfg_basedir.$activepath."/$mdir", $cfg_dir_purview); | ||||
CloseFtp(); | CloseFtp(); | ||||
} | } | ||||
$iseditor = isset($iseditor)? intval($iseditor) : 0; | |||||
$filename_name = $cuserLogin->getUserID().'-'.dd2char(MyDate("ymdHis", $nowtme).mt_rand(100, 999)); | $filename_name = $cuserLogin->getUserID().'-'.dd2char(MyDate("ymdHis", $nowtme).mt_rand(100, 999)); | ||||
$filename = $mdir.'/'.$filename_name; | $filename = $mdir.'/'.$filename_name; | ||||
$fs = explode('.', $imgfile_name); | $fs = explode('.', $imgfile_name); | ||||
@@ -91,9 +92,9 @@ if ($GLOBALS['cfg_html_editor'] == 'ckeditor' && $CKUpload) { | |||||
exit; | exit; | ||||
} | } | ||||
if (!empty($noeditor)) { | if (!empty($noeditor)) { | ||||
ShowMsg("成功上传一张图片", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&noeditor=yes&activepath=".urlencode($activepath)."/$mdir&d=".time()); | |||||
ShowMsg("成功上传一张图片", "select_images.php?iseditor=$iseditor&imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&noeditor=yes&activepath=".urlencode($activepath)."/$mdir&d=".time()); | |||||
} else { | } else { | ||||
ShowMsg("成功上传一张图片", "select_images.php?imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&activepath=".urlencode($activepath)."/$mdir&d=".time()); | |||||
ShowMsg("成功上传一张图片", "select_images.php?iseditor=$iseditor&imgstick=$imgstick&comeback=".urlencode($filename_name)."&v=$v&f=$f&CKEditorFuncNum=$CKEditorFuncNum&activepath=".urlencode($activepath)."/$mdir&d=".time()); | |||||
} | } | ||||
exit(); | exit(); | ||||
?> | ?> |
@@ -119,7 +119,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||
@@ -120,7 +120,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||
@@ -98,7 +98,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||
@@ -97,7 +97,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input name="tags" type="text" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input name="tags" type="text" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||
@@ -99,7 +99,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||
@@ -104,7 +104,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input name="tags" type="text" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input name="tags" type="text" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||
@@ -117,7 +117,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea></td> | <td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -112,7 +112,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“天涯,叙述”)如果为联动选框,这里填写联动选框项目名称</td> | |||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“DedeBIZ,得德”)如果为联动选框,这里填写联动选框项目名称</td> | |||||
<td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea></td> | <td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -180,7 +180,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea></td> | <td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"></textarea></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -174,7 +174,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“天涯,叙述”)如果为联动选框,这里填写联动选框项目名称</td> | |||||
<td>默认值:如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(英文逗号分开,如“DedeBIZ,得德”)如果为联动选框,这里填写联动选框项目名称</td> | |||||
<td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea></td> | <td><textarea name="vdefault" id="vdefault" class="admin-textarea-xl"><?php echo $ctag->GetAtt('default');?></textarea></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -113,7 +113,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input type="text" name="tags" id="tags" value="" onChange="$Obj('keywords').value=this.value;" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input type="text" name="weight" id="weight" value="<?php echo $maxWright['cc'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||
@@ -111,7 +111,7 @@ | |||||
<table cellspacing="0" cellpadding="0"> | <table cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90">标签:</td> | <td width="90">标签:</td> | ||||
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“天涯,叙述”)</td> | |||||
<td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-md">(英文逗号分开,如“DedeBIZ,得德”)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | <td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td> | ||||
</tr> | </tr> | ||||