⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config_payment.inc

📁 不错的东西
💻 INC
字号:
<?php$query = $sql->query("SELECT * FROM merchant");while($data = mysql_fetch_assoc($query)){	$merchant[$data['id']]['alias'] = $data['alias'];	$merchant[$data['id']]['username'] = $data['username'];	$merchant[$data['id']]['password'] = $data['password'];	$merchant[$data['id']]['key'] = $data['key'];	$merchant[$data['id']]['return_url'] = $data['return_url'];	$merchant[$data['id']]['test_mode'] = $data['test_mode'];	$merchant[$data['id']]['active'] = $data['active'];}$query = $sql->query("SELECT * FROM settings");$data2 = mysql_fetch_assoc($query);?><form method="post" action="?page=config&type=payment"><fieldset><legend>Payment Options</legend><table></tr>	<td><label for="enable_check">Enable Check/Money Order?</label></td>	<td><input type="checkbox" name="enable_check" id="enable_check" value="1"<?=($merchant['6']['active'] == 1) ? " checked" : NULL?>/></td></tr><tr>	<td><label for="company"<?=($_SESSION['error']['check_company'] ? " class=\"error\"" : "")?>>Company Name:</label></td>	<td><input type="text" name="company" id="company" value="<?=$data2['check_to']?>" /></td></tr><tr>	<td><label for="address"<?=($_SESSION['error']['check_address'] ? " class=\"error\"" : "")?>>Address:</label></td>	<td><input type="text" name="address" id="address" value="<?=$data2['check_address']?>" /></td></tr><tr>	<td><label for="city"<?=($_SESSION['error']['check_city'] ? " class=\"error\"" : "")?>>City:</label></td>	<td><input type="text" name="city" id="city" value="<?=$data2['check_city']?>" /></td></tr><tr>	<td><label for="state"<?=($_SESSION['error']['check_state'] ? " class=\"error\"" : "")?>>State:</label></td>	<td><select name="state" id="state" onchange="update_other(this,'state','province');">	<?php	foreach($states as $k => $state)	{		if(isset($data2['check_state']) && $data2['check_state'] == $k)		{			?>			<option selected="selected" value="<?=$k?>"><?=$state?></option>			<?php		}		elseif($state == "")		{			?>			<option selected="selected"></option>			<?php		}		else		{			?>								<option value="<?=$k?>"><?=$state?></option>			<?php		}	}	?>	</select>	<input type="text" name="province" id="province" size="15" style="display:none;"  />	</td></tr><tr>	<td><label for="zip"<?=($_SESSION['error']['zip'] ? " class=\"error\"" : "")?>>Zip Code:</label></td>	<td><input type="text" name="zip" id="zip" value="<?=$data2['check_zip']?>" /></td></tr><tr>	<td><label for="country"<?=($_SESSION['error']['check_country'] ? " class=\"error\"" : "")?>>Country:</label></td>	<td><select name="country" id="country" onchange="update_state(this,'state','province');">	<?php	foreach($countries as $k => $country)	{		if(isset($data2['check_country']) && $data2['check_country'] == $k)		{			?>			<option selected="selected" value="<?=$k?>"><?=$country?></option>			<?php		}		elseif($country == "")		{			?>			<option selected="selected"></option>			<?php		}		else		{			?>			<option value="<?=$k?>"><?=$country?></option>			<?php		}	}	?>	</select>	</td></tr></table><hr /><table><tr>	<td><label for="paypal">Enable Paypal:</label></td>	<td><input type="checkbox" name="paypal" id="paypal" value="1"<?=($merchant['1']['active'] == 1) ? " checked" : NULL?> /></td></tr><tr>	<td><label for="paypal_email">PayPal Email:</label></td>	<td><input type="text" name="paypal_email" id="paypal_email" value="<?=$merchant['1']['username']?>" /></td></tr><!--<tr>	<td><label for="paypal_return_url">Paypal Return Url:</label></td>	<td><input type="text" name="paypal_return_url" id="paypal_return_url" value="<?=$merchant['1']['return_url']?>" /></td></tr>--><tr>	<td colspan="2"><a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-ipn-notify">Setup IPN</a><br /><a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-website-payments">Payment Preferences</a></td></tr></table><hr /><table>	<td><label for="stormpay">StormPay:</label></td>	<td>Coming Soon!</td></table><hr /><table><tr>	<td><label for="2checkout">Enable 2Checkout:</label></td>	<td><input type="checkbox" name="2checkout" id="2checkout" value="1"<?=($merchant['2']['active'] == 1) ? " checked" : NULL?> /></td></tr><tr>	<td><label for="2checkout_username">Account Number (SID):</label></td>	<td><input type="text" name="2checkout_username" id="2checkout_username" value="<?=$merchant['2']['username']?>" /></td></tr></table><hr /><table><tr>	<td><label for="authorize">Enable Authorize.net:</label></td>	<td><input type="checkbox" name="authorize" id="authorize" value="1"<?=($merchant['3']['active'] == 1) ? " checked" : NULL?> /></td></tr><tr>	<td><label for="authorize_test_mode">Test Mode?</label></td>	<td><input type="checkbox" name="authorize_test_mode" id="authorize_test_mode" value="1"<?=($merchant['3']['test_mode'] == 1) ? " checked" : NULL?> /></td></tr><tr>	<td><label for="authorize_username">Username:</label></td>	<td><input type="text" name="authorize_username" id="authorize_username" value="<?=$merchant['3']['username']?>" /></td></tr><tr>	<td><label for="authorize_password">Password:</label></td>	<td><input type="password" name="authorize_password" id="authorize_password" value="<?=$merchant['3']['password']?>" /></td></tr></table><hr /><table><!--<tr>	<td><label for="linkpoint">LinkPoint Central:</label></td>	<td><input type="checkbox" name="linkpoint" id="linkpoint" value="1" /></td>	<td><tr>	<td><label for="linkpoint_username">Username:</label></td>	<td><input type="text" name="linkpoint_username" id="linkpoint_username" value="" /></td></tr><tr>	<td><label for="linkpoint_password">Password:</label></td>	<td><input type="password" name="linkpoint_password" id="linkpoint_password" value="" /></td></tr><tr>	<td><label for="linkpoint_secret_key">Secret Key:</label></td>	<td><input type="password" name="linkpoint_secret_key" id="linkpoint_secret_key" value="" /></td></tr>--><tr>	<td><label for="linkpoint">LinkPoint Central:</label></td>	<td>Coming Soon!</td></tr></table><hr /><table><tr>	<td><input type="submit" value="Edit" /></td></tr></table></fieldset></form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -