Ejemplo n.º 1
0
}
if (!isset($send_sample_email)) {
    $send_sample_email = get_bloginfo("admin_email");
}
?>
		
		<tr valign="top">
			<th scope="row"> 
				<label for="send_sample"><?php 
_e("Sample E-mail", "thankmelater");
?>
</label>
			</th>
			<td>
				<?php 
printf(__("%1\$s Send sample e-mail to %2\$s", "thankmelater") . "</label>", '<label for="send_sample">' . TML_form::input_checkbox("send_sample", 1, $send_sample, 21), TML_form::input_text("send_sample_email", $send_sample_email, 22));
?>
			</td>
		</tr>
			
		</tbody>

	</table>
	
<script type="text/javascript">	

function show_hide_defaults(val) {
	if (document.getElementById(val+"_use_default").checked) {
		document.getElementById(val+"_values").style.display = "none";
	} else {
		document.getElementById(val+"_values").style.display = "";
Ejemplo n.º 2
0
</label>
				</th>
				<td>
					<?php 
$restrict_type = $restrict_by_cats_type;
// 0 for exceptions list; 1 for white list
$restrict_items = $restrict_by_cats_slugs;
// hopefully, this is an array
if (!is_array($restrict_items)) {
    // if not:
    $restrict_items = array();
}
// use an empty array
// turn array into comma separated list
$restrict_items_text = implode(", ", $restrict_items);
printf(__("%1\$s%2\$s", "thankmelater"), TML_form::input_select_restriction_type("restrict_by_cats_type", $restrict_type, 7), TML_form::input_text("restrict_by_cats_slugs", $restrict_items_text, 8));
?>
					<small><?php 
_e('Comma separated list of category <strong>slugs</strong> to restrict.', 'thankmelater');
?>
</small>
				</td>
			</tr>
			
			<tr valign="top">
				<th scope="row"> 
					<?php 
_e("Restrict by Users", "thankmelater");
?>
				</th>
				<td>
Ejemplo n.º 3
0
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted">

	<table class="form-table tml-form">
		<tbody>
			<tr valign="top">
				<th scope="row">
					<label for="amount"><?php 
    _e("Donation Amount", "thankmelater");
    ?>
</label>
				</th>
				<td style="font-size:2em;">
					$<?php 
    echo TML_form::input_text("amount", "30.00", 1000, array("style" => 'font-size: 1.5em;vertical-align:middle;width:170px;color:#008000;'));
    ?>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
				</th>
				<td>
					<input type="submit" name="Donate &raquo;" value="<?php 
    _e("Donate &raquo;", "thankmelater");
    ?>
" /> Thanks!
				</td>
			</tr>
		</tbody>
	</table>