contact.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <section class="container" id="page_content">
  4. <div class="row">
  5. <section class="col-md-12">
  6. <h3>联系我们</h3>
  7. <p>公司名称:oscshop</p>
  8. <p>电子邮箱:<?php echo C('EMAIL'); ?></p>
  9. <p>联系电话:<?php echo C('TELEPHONE'); ?></p>
  10. <hr />
  11. <h4>您有任何问题都可以和我们联系。</h4>
  12. <div id="contact_form">
  13. <?php if(isset($error)){ ?>
  14. <div class="alert alert-danger" role="alert">
  15. <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  16. <?php echo $error; ?>
  17. </div>
  18. <?php } ?>
  19. <?php if(isset($success)){ ?>
  20. <div class="alert alert-success" role="alert">
  21. <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  22. <?php echo $success; ?>
  23. </div>
  24. <?php } ?>
  25. <form method="post" name="contact" action="{:U('/comment')}">
  26. <div class="row">
  27. <div class="col-md-6">
  28. <label for="author">名字</label> <input name="author" value="{$author|default=''}" type="text" class="form-control" id="author" maxlength="40" />
  29. <div class="cleaner"></div>
  30. <label for="email">邮箱</label> <input name="email" value="{$email|default=''}" type="text" class="form-control" id="email" maxlength="40" />
  31. <div class="cleaner"></div>
  32. <label for="phone">电话</label> <input name="phone" value="{$phone|default=''}" type="text" class="form-control" id="phone" maxlength="20" />
  33. <div class="cleaner"></div>
  34. </div>
  35. <div class="col-md-6">
  36. <label for="text">留言</label> <textarea id="text" name="comment" rows="8" cols="5" class="form-control">{$comment|default=''}</textarea>
  37. <div class="clearfix">
  38. <input type="submit" value="发送" id="submit" name="submit" class="btn btn-default btn-info fl" />
  39. <input type="reset" value="重置" id="reset" name="reset" class="btn btn-default btn-info fr" />
  40. </div>
  41. </div>
  42. </div>
  43. </form>
  44. </div>
  45. </section>
  46. </div>
  47. </section>
  48. </block>