Location: PHPKode > projects > MembersGear > membersgear/templates/admin_thankyoupage_tracking_m.tpl
{$ADMIN_HEADER}
<div id="content" class="setdiv">
    <div id="full-contentdiv">
        <div class="righttop">
            <h2 align="center">
                {if $IsEdit neq ''}
                    Edit Thankyou Page Tracking Code
                    {assign var="action" value="update"}
                {else}
                    Add New Thankyou Page Tracking Code
                    {assign var="action" value="insert"}
                {/if}
                
            </h2>
         </div>
         <div class="whole-page clear">
           <form name="frmTrackingCode" id="frmTrackingCode" action="admin_thankyoupage_tracking_m.php?action={$action}" method="post">  
              <div class="formformat">
              <center>
              <table border="0" cellpadding="0" cellspacing="0" style="width:600px">
                    <input type="hidden" id="hdnID" name="hdnID" value="{$data[0].id}">
                    <input type="hidden" id="hdnPaymentOptionID" name="hdnPaymentOptionID" value="{$data[0].productpaymentoptionid}">
                    
                    <tr>
                            <td class="right-side-text"><label>
                               Tracking Name <label class="star">*</label></label>
                            </label>
                            </td>
                            <td class="left-side-text">
                                <input type="text" class="txtcss" id="txtTrackingName" name="txtTrackingName" maxlength="45" value="{$data[0].trackingname}" size="25">
                            </td>
                    </tr>
                    
                    <tr>
                            <td class="right-side-text"><label>
                               Tracking By <label class="star">*</label></label>
                            </label>
                            <div class="FieldLabelNote">(e.g. Google Analytics)</div>
                            </td>
                            <td class="left-side-text">
                                <input type="text" class="txtcss" id="txtTrackingBy" name="txtTrackingBy" maxlength="45" value="{$data[0].trackingby}" size="25">
                            </td>
                    </tr>
                    
                    <tr>
                            <td class="right-side-text"><label>
                                Tracking Code <label class="star">*</label></label>
                            </label>                            
                            </td>
                            <td class="left-side-text">
                                <textarea id="txtTrackingCode" class="txtareacss" name="txtTrackingCode" rows="5" cols="60">{$data[0].trackingcode}</textarea>
                            </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" {if $Location eq 'Country'}onclick="javascript:location.href='admin_country_v.php?{$QueryString}';"{elseif $Location eq 'State'}onclick="javascript:location.href='admin_country_state_v.php?id={$data[0].parentid}&{$QueryString}';"{/if}>*}
                                <input type="button" class="btncss" name="btnBack" value="Cancel" onclick="javascript: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("frmTrackingCode");

                      frmvalidator.EnableMsgsTogether();
                      //frmvalidator.EnableOnPageErrorDisplaySingleBox();
                       
                      frmvalidator.addValidation("txtTrackingName","req","Please enter Tracking Name.");
                      frmvalidator.addValidation("txtTrackingName","maxlen=45",    "Maximum length for Tracking Name is 45 character.");
                      //frmvalidator.addValidation("txtTrackingName","alnum_s","Enter alphabetic characters only in Country name.");
                      
                      frmvalidator.addValidation("txtTrackingBy","req","Please enter Tracking By.");
                      frmvalidator.addValidation("txtTrackingBy","maxlen=45","Max length for Tracking By is 45 character.");
                      
                      frmvalidator.addValidation("txtTrackingCode","req","Please enter Tracking Code.");
                      
               </script>
          
    </div>
</div>
</div>

{$ADMIN_FOOTER}
Return current item: MembersGear