Beispiel #1
0
function echoullia($ulclass, $liclass, $array)
{
    //依据输入的数据输出完整的列表
    echo '<ul class="';
    hout($ulclass);
    echo '">';
    foreach ($array as $title => $url) {
        echolia($liclass, $title, $url);
    }
    echo '</ul>';
}
Beispiel #2
0
<body>
    <?php 
include 'top.html.php';
?>

    <div class="container"> 
      <br />
      <br />
      <br />
      <br />
    
      <h1>用户登录</h1>
      <form class="form-horizontal" method="POST" action="index.php?r=user&a=login">
      <div class="span5 offset3">
      <span style="margin:0 0 20px 140px;" class="label label-important"><?php 
hout($error);
?>
</span>
        <div class="control-group">
        <label class="control-label" for="inputName">用户名:</label>
          <div class="controls">
            <input class="input-medium" type="text" name="name" placeholder="li">

          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="inputPassword">密码:</label>
          <div class="controls">
            <input class="input-medium" type="password" name="password" placeholder="123456">
          </div>
        </div>