Example #1
0
<form class="form-inline text-center" action="" method="POST" role="form">
	<div class="form-group">
		<button type="button" class="<?php 
    echo get_btn('success');
    ?>
" name="true" id="true" onclick="<?php 
    echo use_ajax('level', '', 'true');
    ?>
">存在</button>
	</div>
	<div class="form-group">
		<button type="button" class="<?php 
    echo get_btn('warning');
    ?>
" name="false" id="false" onclick="<?php 
    echo use_ajax('level', '', 'false');
    ?>
">不存在</button>
	</div>
	<div class="form-group">
		<button type="button" class="<?php 
    echo get_btn('info');
    ?>
" name="restart" id="restart" onclick="<?php 
    echo use_ajax('level', '', 'restart');
    ?>
">重新開始</button>
	</div>
</form>
<?php 
}
Example #2
0
			<input type="number" id="weight" class="form-control" tabindex="2" onkeypress="return isNumber(event)" />
		</div>
		<div class="col-sm-1">
			<select id="weight_type" class="selectpicker"> 
				<option value="千克" name="kg" selected="selected">千克</option>
				<option value="磅" name="pound">磅</option>
				<option value="克" name="g">克</option>
				<option value="毫克" name="mg">毫克</option>
				<option value="噸" name="t">噸</option>
			</select>
		</div>
	</div>

	<div class="form-group text-center">
		<button type="button" class="<?php 
echo get_btn();
?>
" tabindex="3" onclick="bmi( (document.getElementById('height').value), (document.getElementById('height_type').value), (document.getElementById('weight').value), (document.getElementById('weight_type').value) );">確認</button>
	</div>
</form>

<div id="result">
	<p id="bmi_result"></p>
	<p id="hint"></p>
</div>

<div id="more_info" style="display: none;">

<div class="<?php 
echo get_alert_class('info');
?>
Example #3
0
	<input type="number" class="form-control" id="sec" value="0.1" <?php 
enter_num_only();
?>
 />
	<span class="input-group-addon">秒 / 次</span>
	<span class="input-group-btn">
		<button class="<?php 
echo get_btn();
?>
" id="btn-rate" type="button">修改</button>
	</span>
</div>
<h4 class="padding-top">網址清單 <small>一行一個</small></h4>
<div class="col-sm-8 input-group centerd">
	<textarea class="form-control" id="addurl" rows="10" placeholder="http://www.google.com/"></textarea>
</div>
<div class="col-sm-10 input-group centerd padding-top">
<table class="centerd">
	<tbody id="sites"></tbody>
</table>
</div>
<div class="col-sm-10 input-group centerd padding-top">
	<button id="btn-start" class="<?php 
echo get_btn('success');
?>
 btn-large">套用/開始</button>
</div>
</div>
<?php 
$footer = array('more_footer' => '請不要將此工具用於非法用途,否則後果自負!', 'more_footer_copyright' => 'OK-TW', 'extra_script' => array("underscore.min.js"));
get_footer($footer);
Example #4
0
<form class="form-inline centerd text-center" action="" method="POST" role="form" style="width: 500px;">
	<div class="form-group">
		<div class="centerd input-group">
			<span class="input-group-addon">總數</span>
			<input type="number" class="form-control" name="number" id="number" value="<?php 
echo $_SESSION['number'];
?>
" autofocus="autofocus" <?php 
enter_num_only();
?>
 />
		</div>
	</div>
	<br /><br />
	<div class="form-group text-center">
		<div class="text-center">
			<button type="button" class="<?php 
echo get_btn('primary btn-lg');
?>
" onclick="<?php 
echo use_ajax('draw', 'number');
?>
">抽吧</button>
		</div>
	</div>
</form>
<br /><br />
<div id="result"></div>
<?php 
get_footer();
Example #5
0
?>
" />
	</div>
	<div class="form-group col-sm-12 centerd" style="padding-bottom: 20px;">
		<label for="subject">郵件內容(可以使用HTML)</label>
		<textarea class="form-control" id="content" name="content" cols="40" rows="10"><?php 
echo $content;
?>
</textarea>
	</div>
	<button type="submit" class="<?php 
echo get_btn("primary");
?>
" id="submit" name="submit">開始轟炸</button>
	<button type="submit" class="<?php 
echo get_btn("danger");
?>
" id="stop" name="stop">停止轟炸</button>
</form>

<?php 
if (isset($_COOKIE['email']) && isset($_COOKIE['subject']) && isset($_COOKIE['content'])) {
    //如果存在郵件發送信息
    require 'class.phpmailer.php';
    //加載PHPMailer
    $mail = new PHPMailer();
    $mail->IsSMTP();
    //使用SMTP
    $mail->Host = 'smtp.163.com';
    //SMTP服務器
    $mail->Port = 465;