You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
<?php |
|
$urlManager = Yii::$app->urlManager; |
|
?> |
|
<!DOCTYPE html> |
|
<html lang="zh-CN"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="renderer" content="webkit"> |
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"> |
|
<title><?= $this->title ?></title> |
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> |
|
<style> |
|
</style> |
|
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> |
|
<script src="https://cdn.bootcss.com/popper.js/1.12.3/umd/popper.min.js"></script> |
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script> |
|
<script> |
|
var _csrf = "<?=Yii::$app->request->csrfToken?>"; |
|
</script> |
|
</head> |
|
<body> |
|
<?= $content ?> |
|
<script> |
|
$(document).ready(function () { |
|
$("form[method=post]").each(function () { |
|
if (this._csrf == undefined) |
|
$(this).append('<input name="_csrf" value="' + _csrf + '" type="hidden">'); |
|
}); |
|
|
|
$(document).on("submit", ".auto-submit-form", function () { |
|
var form = $(this); |
|
var btn = form.find(".submit-btn"); |
|
var error = form.find(".form-error"); |
|
var success = form.find(".form-success"); |
|
|
|
}); |
|
}); |
|
</script> |
|
</body> |
|
</html>
|