Source

wdcms / tpl / modhtml.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
    <title>
      后台
    </title>
    <link href="/static/main.css" rel="stylesheet" type="text/css" media="all" />
  </head>
  <body>
    {% include 'seo.html' %} {% include 'header.html' %} <script language="javascript" type=
    "text/javascript">
//<![CDATA[

    //转载请保留出处 http://www.dwww.cn
    function unselectall(){
    if(document.myform.chkAll.checked){
    document.myform.chkAll.checked = document.myform.chkAll.checked&0;
    }
    }
    function CheckAll(form){
    for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.Name != 'chkAll'&&e.disabled==false)
    e.checked = form.chkAll.checked;
    }
    }
    //]]>
    </script>
    <div>
      <fieldset>
        <legend>↓编辑HTML/CSS↓</legend>
        <form action="/admin/addormodhtml" method="post">
		  {% for C in COLLECTIONS %} 
		  <input type="radio" name='examkey' {% ifequal C.url COLLECTION.url %} checked="checked" {% endifequal %}value="{{C.key}}" /> <a href="/__{{C.url}}">{{C.url}}</a>
		  <br />
          {% endfor %}
          <div>
            <textarea rows="5" cols="40" name='head'>{{CONTENT.head|escape}}</textarea>head
            <textarea rows="5" cols="40" name='content'>{{CONTENT.content|escape}}</textarea>content
          </div><input type="text" name='title' value="{{CONTENT.title}}"/>title<br />
          <input type="text" name='url' value="{{CONTENT.url}}"/>url<br />
          <input type="radio" name='type' value="html" checked="checked" />html<br />
          <input type="radio" name='type' value="css" />css<br />
          <input type="checkbox" name='header' {% if CONTENT.header %} checked="checked" {% endif %} value="true" />header<br />
          <input type="checkbox" name='footer' {% if CONTENT.footer %} checked="checked" {% endif %} value="true" />footer<br />
		  <input type="hidden" name='contentkey'  value="{{CONTENT.key}}" />
          <input type="submit" value="提交" />
        </form>
      </fieldset><br />
    </div>

{% include 'footer.html' %}
  </body>
</html>