本文整理汇总了PHP中content::form_container方法的典型用法代码示例。如果您正苦于以下问题:PHP content::form_container方法的具体用法?PHP content::form_container怎么用?PHP content::form_container使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类content
的用法示例。
在下文中一共展示了content::form_container方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
} else {
?>
Forgot your password? Type your email and username and we'll send you a new one.
<form method="POST" action="forgot_password.php" ><fieldset>
<div class="form-group">
Email <input class="form-control" type = "text" size="30" name="email">
</div>
<div class="form-group">
Username<input class="form-control" type = "text" size="20" name="username">
</div>
<p align='center'><input type ="Submit" name="Submit" value="Submit" class="btn btn-lg btn-success"></p>
</fieldset></form>
<?php
}
}
$content->form_container("Forgot password");
forgot_password($con);
?>
</div>
</div>
</div>
</div>
<div class="panel-body">
<?php
$content->drawFooter();
?>
</div>
</div>
</body>
</html>
示例2: content
<!-- DataTables CSS -->
<link href="../bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">
<!-- DataTables Responsive CSS -->
<link href="../bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">
<?php
$title = "Logout";
$content = new content($title);
$content->drawMeta($title);
?>
</head>
<body>
<?php
$message = "Logout";
$content->form_container($message);
session_destroy();
unset($_COOKIE['user']);
setcookie('user', '', time() - 3600, '/');
unset($_COOKIE['password']);
setcookie('password', '', time() - 3600, '/');
echo "You have logged out";
echo "<meta http-equiv='refresh' content='1; url=../index.php'>";
?>
</div>
</div>
</div>
</div>
<div class="panel-body">
<?php
$content->drawFooter();
示例3:
} else {
echo "Forgot your username? Just type the e-mail associated to your account and we'll send it to you:" . "<br><br>";
?>
<form method="POST" action="forgot_username.php" ><fieldset>
<div class="form-group">
<input class="form-control" type = "text" size="30" name="email">
</div>
<div class="form-group">
<p align='center'><input type ="Submit" name="Submit" value="Submit" class="btn btn-lg btn-success"></p>
</fieldset></form>
<?php
}
}
$content->form_container("Forgot username");
forgot_username($con);
?>
</div>
</div>
</div>
</div>
<div class="panel-body">
<?php
$content->drawFooter();
?>
</div>
</div>
</body>
</html>