Example #1
0
		<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');
?>
">想知道多一點關於BMI指數的事情麼?看看這裏吧</div>

<table class="table table-striped table-bordered table-hover text-center centerd" style="width: 500px;">
	<tbody>
		<tr>
			<td>健康狀況</td>
			<td>BMI 值</td>
		</tr>
		<tr class="warning">
			<td>體重過低</td>
			<td>&lt;18.5</td>
		</tr>
		<tr class="success">
			<td>一般體重</td>
Example #2
0
        }
    }
}
?>
<div class="centerd <?php 
echo get_alert_class($alert_class);
?>
">
	<?php 
echo $message;
?>
</div>
<?php 
if ($_SESSION['time'] >= 30) {
    ?>
<br />
<div class="centerd <?php 
    echo get_alert_class("warning");
    ?>
">
	似乎你已經猜了很多次了,要顯示答案麼?
	<button type="submit" name="rerand" class="<?php 
    echo get_btn();
    ?>
" onclick="alert('這個數字是 <?php 
    echo $_SESSION['num'];
    ?>
 哦\n快點輸入吧!');">顯示答案</button>
</div>
<?php 
}
Example #3
0
	<p>描述:<?php 
        echo $description;
        ?>
</p>
	<p>地址:<a href="<?php 
        echo $app_store_url;
        ?>
" target="_blank"><?php 
        echo $app_store_url;
        ?>
</a></p>
</div>
<?php 
    } else {
        ?>
<div class="<?php 
        echo get_alert_class('warning');
        ?>
">
	<p>你輸入的網址並非App Store網址!</p>
</div>
<?php 
    }
    ?>

<?php 
}
?>

<?php 
get_footer();
Example #4
0
<?php

include "../function.php";
include "err_message.php";
//彩蛋
if (empty($_SERVER['HTTP_REFERER'])) {
    $err_message = "請不要直接訪問此頁面";
}
if (isset($err_message)) {
    //錯誤提示兼彩蛋
    get_header("域名證書生成");
    ?>
<div class="<?php 
    echo get_alert_class('danger');
    ?>
">
	<?php 
    echo $err_message;
    ?>
</div>
<?php 
    get_footer();
    die;
}
$domain = htmlspecialchars($_POST['domain']);
$chinese_name = htmlspecialchars($_POST['chinese_name']);
$english_name = htmlspecialchars($_POST['english_name']);
$register_date = htmlspecialchars($_POST['register_date']);
$upcoming_date = htmlspecialchars($_POST['upcoming_date']);
$chinese_address = htmlspecialchars($_POST['chinese_address']);
$english_address = htmlspecialchars($_POST['english_address']);
Example #5
0
        echo get_alert_class('warning');
        ?>
">
		沒有找到可以替換的內容!
	</div>
	<?php 
    } else {
        //正常替換
        if (empty($time)) {
            $time = "-1";
        }
        $new = preg_replace('/' . $search . '/i', $replace, $old, $time, $count);
        //替換,並把次數儲存位$count
        ?>
	<div class="<?php 
        echo get_alert_class('success');
        ?>
">
		替換成功!
		(把<?php 
        echo $count;
        ?>
個「<?php 
        echo $search;
        ?>
」替換為「<?php 
        echo $replace;
        ?>
」)
	</div>
	<div class="col-sm-10 centerd">
Example #6
0
            $class = "warning";
        } else {
            if (!isset($_COOKIE['subject'])) {
                $message = "你還沒有輸入郵件標題呢!";
                $class = "warning";
            } else {
                if (!isset($_COOKIE['content'])) {
                    $message = "你還沒有輸入郵件內容呢!";
                    $class = "warning";
                }
            }
        }
    }
}
if (isset($message)) {
    ?>
<div class="<?php 
    echo get_alert_class($class);
    ?>
">
	<?php 
    echo $message;
    ?>
</div>
<?php 
}
?>

<?php 
$footer = array('more_footer' => '請不要將此工具用於非法用途,否則後果自負!');
get_footer($footer);