Home > CMS Tutorial > Empire CMS > body text

How to submit articles to Empire CMS

angryTom
Release: 2019-07-18 16:24:13
Original
3704 people have browsed it

How to submit articles to Empire CMS

How does Empire cms implement the submission function? Let’s introduce it to you in detail below.

Recommended tutorial: Empire cms tutorial

##1. First, enable the submission function in "System->System Settings->System Parameter Settings->User Settings->Front Desk Settings".

2. Click "System->Data Table and System Model->New Data Table" to create a new submitted data table and fields.

3. Click Manage Data Table, find the newly created data table management field, and add the required fields.

How to submit articles to Empire CMS

## 4. Click the management system model of the corresponding data table to add the system model, the submission items to be displayed on the front page and Entry items must be checked.

How to submit articles to Empire CMS

5. Add a column, change the system model bound to the column to the newly created system model, select the ultimate column, Enable front desk submission.

6. Add a custom page. Share the submission form with everyone:

<form name="add" method="POST" enctype="multipart/form-data" action="e/DoInfo/ecms.php" οnsubmit="return EmpireCMSQInfoPostFun(document.add,&#39;11&#39;);">
    <input value="MAddInfo" name="enews" type="hidden"> 
    <input value="3" name="classid" type="hidden"> <!-- 栏目id -->
    <input name="id" id="id" value="" type="hidden"> 
    <input value="1453532599" name="filepass" type="hidden"> 
    <input name="mid" id="mid" value="11" type="hidden"><!--  //模型id -->
    <input type=hidden name=ecmsfrom value="9">
    <ul>
      <li>您的姓名:<input name="title" id="title" type="text">*</li>
      <li>来自哪里:
        <select name="address" id="address">
            <option value="北京"<?=$r[address]=="北京"||$ecmsfirstpost==1?&#39; selected&#39;:&#39;&#39;?>>北京</option>
            <option value="上海"<?=$r[address]=="上海"?&#39; selected&#39;:&#39;&#39;?>>上海</option>
            <option value="天津"<?=$r[address]=="天津"?&#39; selected&#39;:&#39;&#39;?>>天津</option>
            <option value="重庆"<?=$r[address]=="重庆"?&#39; selected&#39;:&#39;&#39;?>>重庆</option>
            <option value="河北"<?=$r[address]=="河北"?&#39; selected&#39;:&#39;&#39;?>>河北</option>
</select>
       </li>
       <li>愿文内容:<textarea name="ywtext" id="ywtext" cols="60" rows="7"></textarea>*</li>
       <li><span>提交后合起双眼诚心祈求..</span></li>
       <li>
           <span>
              <input name="" src="[!--news.url--]skin/yongning/images/tjan.jpg" type="submit">
              <input name="" src="[!--news.url--]skin/yongning/images/czan.jpg" type="reset">
           </span>
        </li>
     </ul>  
</form>
Copy after login
Manage the custom page to query the submission page path. After entering the content, click Submit and the submission is successful.


How to submit articles to Empire CMS

7. The content submitted by users on the front page can be viewed in the information list and is in review status.

How to submit articles to Empire CMS

The above is the detailed content of How to submit articles to Empire CMS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template