?? string.php
字號:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<body onload="myform.fromwhere.value=myform.fromwhereselect.value">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th>提示信息</th>
</tr>
<tr bgColor='#F1F3F5'>
<td>如果你是先在本地測試并錄入了很多數(shù)據(jù),并且以 http://localhost/phpcms/ 來訪問,但是現(xiàn)在安裝到 http://www.abc.com 上,發(fā)現(xiàn)文章里的圖片都不能顯示。為什么呢?這個是路徑問題造成的,圖片路徑多了 /phpcms 。<br>怎么辦呢?用替換功能可以解決這個問題,把內(nèi)容和標題圖片中的 /phpcms/data/uploadfile/ 替換為 /data/uploadfile/,然后更新所有的文章頁即可正常顯示圖片。<br>另外當你進行安裝目錄調(diào)整,比如把原來在 http://www.abc.com/news/ 下安裝的換到 http://www.abc.com/ 也可以通過替換功能來解決這個問題。<br>如果你的文章內(nèi)容是UBB格式的,你可以選定字段,點UBB代碼轉(zhuǎn)換為HTML</td>
</tr>
</table>
<br />
<form name="myform" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=replace&channelid=<?=$channelid?>&referer=<?=$referer?>">
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=2>字符替換工具</th>
</tr>
<tr bgColor='#F1F3F5'>
<td>要替換的字段名</td>
<td>
<select name="fromwhereselect" onchange="javascript:myform.fromwhere.value=myform.fromwhereselect.value">
<?=$option?>
</select>
<input name='fromwhere' type='text' size='15' value=''>
可直接選擇也可以手動填寫字段名
</td>
</tr>
<tr bgColor='#F1F3F5'>
<td>要替換的內(nèi)容</td>
<td><textarea name="search" cols="50" rows="3"></textarea></td>
</tr>
<tr bgColor='#F1F3F5'>
<td>替換為</td>
<td><textarea name="replace" cols="50" rows="3"></textarea></td>
</tr>
<tr bgColor='#F1F3F5'>
<td>替換條件</td>
<td><input name='condition' type='text' size='50'> 請輸入sql語句,留空則替換所有!<br /><br />例如替換欄目ID為10的<?=$_CHA[channelname]?>,則可填 catid=10 [注:多個條件以and連接]</td>
</tr>
<tr bgColor='#F1F3F5'>
<td> </td>
<td>
<input type="submit" name="submit" value=" 開始替換字符 ">
<input type="submit" name="submit1" value=" UBB代碼轉(zhuǎn)換為HTML " onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=ubb&channelid=<?=$channelid?>'">
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -