Location: PHPKode > projects > MembersGear > membersgear/templates/admin_theme_m.tpl
{$ADMIN_HEADER}
<div id="content" class="setdiv">
    <div id="full-contentdiv">
        <div class="righttop">
            <h2 align="center">
                {if $IsEdit neq ''}
                    Edit Template
                    {assign var="action" value="update"}
                {else}
                    Add Template
                    {assign var="action" value="insert"}
                {/if}
            </h2>
         </div>
         <div class="whole-page clear">
           <form name="frmThemeManage" id="frmThemeManage" action="admin_theme_m.php?action={$action}" method="post">
            <input type="hidden" id="hdnIsDefaultTheme" name="hdnIsDefaultTheme" value="{$IsDefaultTheme|default:'no'}">  
              <div class="formformat">
              <center>
              <table border="0" cellpadding="0" cellspacing="0" style="width:500px">
                    <input type="hidden" id="hiddID" name="hiddID" value="{$data[0].id}">
                    <input type="hidden" id="hiddIsDefault" name="hiddIsDefault" value="{$data[0].isdefault}">
                       <tr>
                            <td class="right-side-text"><label>
                                Theme Name
                            </label><label class="star" >*</label>
                            </td>
                            <td class="left-side-text">
                                <input type="text" class="txtcss" id="txtThemeName" {if $IsDefaultTheme eq 'yes'}readonly=""{/if} name="txtThemeName" maxlength="45" value="{$data[0].name}" size="25">
                            </td>
                    </tr>
                    
                    <tr>
                            <td class="right-side-text" valign="top" ><label>
                                Description
                            </label><label class="star" >*</label>
                            </td>
                            <td class="left-side-text">
                                <textarea id="txtDescription" class="txtareacss" name="txtDescription" rows="2" cols="35">{$data[0].description}</textarea>
                            </td>
                    </tr>
                     {*
                     <tr>
                            <td class="right-side-text"><label>
                                Display Type 
                            </label>
                            </td>
                            <td class="left-side-text">
                                <select size="1" id="ddlStatus" name="ddlStatus">
                                           <option value="" selected>Select</option>
                                           <option value="1" {if $data[0].isdefault eq 1}selected{/if}>Active</option>
                                           <option value="0" {if $data[0].isdefault eq 2}selected{/if}>InActive</option>
                                            
                                </select>
                            </td>
                    </tr>
                       *}
                    <tr>
                         <td/>
                         <td class="buttontd">
                                <input type="submit" class="btncss" name="submit" {if $IsEdit eq 'yes'}value="Save"{else}value="Submit"{/if}>&nbsp;&nbsp;
                                <input type="button" class="btncss" name="btnBack" value="Cancel" onclick="window.history.go(-1);">
                         </td>
                         
                    </tr>
              
              </table>
              </center>
              
           </div>
           </form>
           
           <script language="JavaScript" type="text/javascript">
                //You should create the validator only after the definition of the HTML form
                  var frmvalidator  = new Validator("frmThemeManage");

                  frmvalidator.EnableMsgsTogether();
                  //frmvalidator.EnableOnPageErrorDisplaySingleBox();

                  frmvalidator.addValidation("txtThemeName","req","Please enter Theme Name.");
                  frmvalidator.addValidation("txtThemeName","maxlen=45",    "Max length for Theme Name is 45 character.");
                  frmvalidator.addValidation("txtThemeName","alnum_s","Alphabetic chars only");
                  
                  frmvalidator.addValidation("txtDescription","req","Please enter Theme Description.");
                  frmvalidator.addValidation("txtDescription","maxlen=200","Max length for Theme Description is 200 character.");
                  
                 // frmvalidator.addValidation("ddlStatus","dontselect=''","Please select theme status.");
                  
           </script>
        
    </div>
</div>
</div>
{$ADMIN_FOOTER}
Return current item: MembersGear