{$ADMIN_HEADER}
{*
{php}
require_once '../config/config.php';
require_once INCLUDE_DIR.'\spaw2\spaw.inc.php';
{/php}
{include_php file="$INCLUDE_DIR/spaw2/spaw.inc.php"}
*}
<div id="content" class="setdiv">
{if $msg neq ''}
<br/><center><span class=errormsg style="">{if $msg neq ''}{$msg}{/if}</span></center>
{/if}
<div id="full-contentdiv">
<div class="righttop">
<h2 align="center">
{if $IsEdit neq ''}
Edit Theme Page
{assign var="action" value="update"}
{elseif $USER_CONTENT neq ''}
Edit Page Content
{assign var="action" value="update_contentpage"}
{/if}
</h2>
</div>
<div class="whole-page clear">
<!-- Place your content here -->
<form name="frmEditThemePage" id="frmEditThemePage" action="admin_theme_pages_m.php?action={$action}&id={$data[0].id}" method="post">
<div class="formformat">
<center>
<table border="0" width="800px" cellpadding="0" cellspacing="0">
<input type="hidden" id="hiddID" name="hiddID" value="{$data[0].id}">
<input type="hidden" id="hiddThemeID" name="hiddThemeID" value="{$data[0].themeid}">
<tr>
<td class="right-side-text" style="width:150px;"><label>
Page
</label>
</td>
<td class="left-side-text">
<input type="text" id="txtPageName" name="txtPageName" value="{$data[0].name}" readonly>
</td>
</tr>
<tr>
{assign var="page_content" value=$data[0].content} {*----------------- To store the content of the theme page ----------------*}
<td class="right-side-text" style="width:150px;" valign="top"><label>
Content
</label>
</td>
<td class="left-side-text">
{php}
/// $content = $this->get_template_vars('page_content');
// $spaw1 = new SpawEditor("spaw1",$content);
// $spaw1->show();
{/php}
<textarea class="txtareacss" cols="15" rows="10" style="overflow:auto;width: 98%; height:400px;" id="spaw1" name="spaw1">{$page_content}</textarea>
</td>
</tr>
<tr>
<td>
</td>
<td>
<div style="width: 600px ! important;margin:0px 0px 5px 5px !important;" class="comment-div">
<strong>Main Placeholder</strong><br/>
{php} echo '{$USER_CONTENT}'; {/php} - This is used for replacing page content<br /><br/>
<strong>You may use the following global variable into your template:</strong><br/>
{php} echo '{$WEB_URL}'; {/php} - Generates the following text
<span style="margin-left:0px;"><input type="text" value="{$WEB_URL}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$WEB_URL_SECURE}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$WEB_URL_SECURE}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$WEB_TITLE}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$WEB_TITLE}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/> <br/>
<strong>You may use the following variable to place a verious links into template manager:</strong><br/>
{php} echo '{$MEMBERSITE_HOME}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$MEMBERSITE_HOME}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$MEMBERSITE_SIGNUP}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$MEMBERSITE_SIGNUP}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$MEMBERSITE_SUPPORT}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$MEMBERSITE_SUPPORT}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$MEMBERSITE_LOGINSTATUS_LINK}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$MEMBERSITE_LOGINSTATUS_LINK}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$MEMBERSITE_LOGINSTATUS}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="login/logout" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$MEMBERSITE_EDITPROFILE}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$MEMBERSITE_EDITPROFILE}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/>
{php} echo '{$MEMBERSITE_CHANGEPASSWORD}'; {/php} - Generates the following text.
<span style="margin-left:0px;"><input type="text" value="{$MEMBERSITE_CHANGEPASSWORD}" class="txtcss" size="70" onclick="this.select();" readonly="readonly"></span><br/><br/>
<strong>You may use the following variable to place a user details. These Detail will only appear after user login.</strong><br/>
{php} echo 'Use {$MEMBERSITE_USERID}'; {/php} to place login user id.<br/>
{php} echo 'Use {$MEMBERSITE_USERNAME}'; {/php} to place login user name.<br/>
{php} echo 'Use {$MEMBERSITE_USER_LASTLOGGEDINTIME}'; {/php} to place loggin user last login date/time.<br/><br/>
<!-- <strong>You may use the following variable to place page contents:</strong><br/>-->
{* {php} echo 'Use {$USER_HEADER}'; {/php} to place user header page.<br/>
{php} echo 'Use {$USER_LEFTPANE}'; {/php} to place user left panel menu.<br/>
{php} echo 'Use {$USER_RIGHTPANE}'; {/php} to place user right panel menu.<br/>
{php} echo 'Use {$USER_FOOTER}'; {/php} to place user footer page.<br/> *}
{*{php} echo 'Use {$USER_UNSUBSCRIBE}'; {/php} to place user unsubscribe page.<br/>
{php} echo 'Use {$USER_SUBSCRIBE}'; {/php} to place user subscribe page.<br/><br/>*}
</div>
</td>
</tr>
<tr>
<td></td>
<td class="left-side-text">
<input type="submit" class="btncss" onclick=" return is_USER_CONTENT_place_holder_added();" name="submit" {if $IsEdit eq 'yes'}value="Save"{else}value="Submit"{/if}>
<input type="button" class="btncss" name="btnBack" value="Cancel" onclick="window.history.go(-1);">
</td>
</tr>
</table>
</center>
</div>
</form>
</div>
</div>
</div>
{literal}
<script language="JavaScript" type="text/javascript">
var $nj = jQuery.noConflict();
function is_USER_CONTENT_place_holder_added()
{
var is_css=$nj("#txtPageName").val();
if(is_css=="WEBSITE_CSS")
return true;
var contentval=$nj("#spaw1").val();
if(contentval.indexOf('{$USER_CONTENT}') <=0 )
{
alert('{$USER_CONTENT} is not found please enter it');
return false;
}
else
return true;
}
</script>
{/literal}
{$ADMIN_FOOTER}