📄 settings_policies.php
字号:
<?
include_once("myconnect.php");
include_once("logincheck.php");
function RTESafe($strText) {
//returns safe code for preloading in the RTE
$tmpString = trim($strText);
//convert all types of single quotes
$tmpString = str_replace(chr(145), chr(39), $tmpString);
$tmpString = str_replace(chr(146), chr(39), $tmpString);
$tmpString = str_replace("'", "'", $tmpString);
//convert all types of double quotes
$tmpString = str_replace(chr(147), chr(34), $tmpString);
$tmpString = str_replace(chr(148), chr(34), $tmpString);
// $tmpString = str_replace("\"", "\"", $tmpString);
//replace carriage returns & line feeds
$tmpString = str_replace(chr(10), " ", $tmpString);
$tmpString = str_replace(chr(13), " ", $tmpString);
return $tmpString;
}
function main()
{
$sbq_con="select * from sbbleads_config where sb_id=1";
$sbrow_con=mysql_fetch_array(mysql_query($sbq_con));
$sb_how_to_sell=$sbrow_con["sb_terms"];
$sb_how_to_buy=$sbrow_con["sb_privacy"];
$sb_legal=$sbrow_con["sb_legal"];
?>
<script language="JavaScript">
<!--
function validate(form)
{
if ( form.sb_how_to_sell.value == "" )
{
alert('Please specify terms of use!');
form.sb_how_to_sell.focus();
return false;
}
if ( form.sb_how_to_buy.value == "" )
{
alert('Please specify privacy policy!');
form.sb_how_to_buy.focus();
return false;
}
if ( form.sb_legal.value == "" )
{
alert('Please specify legal policy!');
form.sb_legal.focus();
return false;
}
return true;
}
//-->
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form name="form123" method="post" action="update_policies_set.php" onSubmit="return validate(this);">
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="5" class="onepxtable">
<tr class="titlestyle">
<td colspan="3"> Other Parameters</td>
</tr>
<tr valign="top">
<td width="40%" align="right" class="innertablestyle"><font class="normal"><strong>Terms
of Use</strong></font></td>
<td width="6"><font class="red">*</font></td>
<TD width="60%" valign="middle"><textarea name="sb_how_to_sell" cols="50" rows="8" id="sb_how_to_sell"><?php echo $sb_how_to_sell; ?></textarea></TD>
</tr>
<tr valign="top">
<td align="right" class="innertablestyle"><font class="normal"><strong>Privacy
Policy</strong></font></td>
<td><font class="red">*</font></td>
<TD valign="middle"><textarea name="sb_how_to_buy" cols="50" rows="8" id="sb_how_to_buy"><?php echo $sb_how_to_buy; ?></textarea></TD>
</tr>
<tr valign="top">
<td align="right" class="innertablestyle"><font class="normal"><strong>Legal
Policy</strong></font></td>
<td><font class="red">*</font></td>
<TD valign="middle"><textarea name="sb_legal" cols="50" rows="8" id="sb_legal"><?php echo $sb_legal; ?></textarea></TD>
</tr>
<tr valign="top">
<td align="right" class="innertablestyle"> </td>
<td> </td>
<td><input type="submit" name="Submit2" value="Update"> </td>
</tr>
</table>
<p align="center"> </p>
</form>
</td>
</tr>
</table>
<?
} //End of main
include_once("template.php");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -