File: /var/www/ilya/data/www/irkboard.ru/cache/cacheid_6/skin_ucp.php
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD */
/* CACHE FILE: Skin set id: 6 */
/* CACHE FILE: Generated: Sat, 12 Aug 2006 15:09:52 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_ucp_6 {
var $ipsclass;
//===========================================================================
// <ips:attachments_row:desc:>
//===========================================================================
function attachments_row($data="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr id="{$data['attach_id']}">
<td align="center" class="row1"><img src="{$this->ipsclass->vars['mime_img']}/{$data['image']}" alt="{$this->ipsclass->lang['attached_file']}" /></td>
<td class="row2">
<a href="{$this->ipsclass->base_url}act=Attach&type={$data['_type']}&id={$data['attach_id']}" title="{$data['attach_file']}" target="_blank">{$data['short_name']}</a>
<div class="desc">( {$this->ipsclass->lang['attach_hits']}: {$data['attach_hits']} )</div>
</td>
<td align="center" class="row1">{$data['real_size']}</td>
<td class="row2">
EOF;
//startif
if ( $data['attach_pid'] > 0 )
{
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->base_url}showtopic={$data['tid']}&view=findpost&p={$data['attach_pid']}">{$data['title']}</a>
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
{$data['title']}
EOF;
}//endelse
$IPBHTML .= <<<EOF
<br />
<span class="desc">{$data['attach_date']}</span>
</td>
<td class="row2" align="center"><input type="checkbox" name="attach_{$data['attach_id']}" value="1" class="checkbox" /></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:attachments_top:desc:>
//===========================================================================
function attachments_top($info="",$pages="",$attach_html="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<!-- inbox folder -->
<div class="formsubtitle">{$this->ipsclass->lang['m_attach']}</div>
EOF;
//startif
if ( $info['has_limit'] == 1 )
{
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td valign="middle">
<!-- LEFT -->
<table class='ipbtable' cellspacing="1" class="inbox">
<tr>
<td class="row1" colspan="3">{$this->ipsclass->lang['attach_space_used']}</td>
</tr>
<tr>
<td valign="middle" class="row1" colspan="3" width='100%'><{BAR_LEFT}><img src="{$this->ipsclass->vars['img_url']}/bar.gif" width="{$info['img_width']}" height="11" align="middle" alt="" /><{BAR_RIGHT}></td>
</tr>
<tr>
<td class="row1" width="33%" valign="middle">0%</td>
<td class="row1" width="33%" align="center" valign="middle">50%</td>
<td class="row1" width="33%" align="right" valign="middle">100%</td>
</tr>
</table>
</td>
<!-- RIGHT -->
<td align="right" valign="bottom">$pages<br /><br />{$this->ipsclass->lang['attach_space_count']}</td>
</tr>
</table>
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td>
<!-- LEFT -->
{$this->ipsclass->lang['attach_space_used']}
</td>
<td align="right">
<!-- RIGHT -->
$pages
</td>
</tr>
</table>
EOF;
}//endelse
$IPBHTML .= <<<EOF
<!-- ATTACHMENTS TABLE -->
<form action="{$this->ipsclass->base_url}act=usercp&CODE=attach&sort={$this->ipsclass->input['sort']}" name="mutliact" method="post">
<div class="borderwrapm">
<table class='ipbtable' cellspacing="1">
<tr>
<th width="2%"> </th>
<th width="35%"><b>{$this->ipsclass->lang['attach_title']}</b></th>
<th width="5%"><b>{$this->ipsclass->lang['attach_hsize']}</b></th>
<th width="27%"><b>{$this->ipsclass->lang['attach_topic']}</b></a></th>
<th width="5%" align="center"><input name="allbox" type="checkbox" value="Check All" onclick="InboxCheckAll();" /></th>
</tr>
EOF;
//startif
if ( $attach_html != "" )
{
$IPBHTML .= <<<EOF
{$attach_html}
<tr>
<td colspan="5" align="right" class="formbuttonrow"><input type="submit" value="{$this->ipsclass->lang['attach_delete']}" class="button" /></td>
</tr>
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
<tr>
<td colspan="5" align="center">{$this->ipsclass->lang['splash_noattach']}</td>
</tr>
EOF;
}//endelse
$IPBHTML .= <<<EOF
</table>
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_autosize:desc:>
//===========================================================================
function avatar_autosize() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td class="pformleft"> </td>
<td class="pformright"><b>{$this->ipsclass->lang['av_autosize']}</b><br />({$this->ipsclass->lang['av_as_desc']})</td>
</tr>
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_external_title:desc:>
//===========================================================================
function avatar_external_title() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['avatar_url_title']}</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_gallery_blank_row:desc:>
//===========================================================================
function avatar_gallery_blank_row() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<td> </td>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_gallery_cell_row:desc:>
//===========================================================================
function avatar_gallery_cell_row($img="",$txt="",$form="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<td align="center"><img src="style_avatars{$img}" alt="txt" /><br /><input type="radio" class="radiobutton" name="avatar" value="$form" id="$form" /> <b><label for="$form">$txt</label></b></td>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_gallery_end_row:desc:>
//===========================================================================
function avatar_gallery_end_row() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_gallery_end_table:desc:>
//===========================================================================
function avatar_gallery_end_table() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</table>
<div align="center" class="formsubtitle">
<input type="submit" name="submit" value="{$this->ipsclass->lang['av_gall_submit']}" />
<input type="button" class='button' name="remove" onclick="self.location='{$this->ipsclass->base_url}act=UserCP&CODE=24';" value="{$this->ipsclass->lang['av_gall_cancel']}" />
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_gallery_start_row:desc:>
//===========================================================================
function avatar_gallery_start_row() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_gallery_start_table:desc:>
//===========================================================================
function avatar_gallery_start_table($title="",$av_gals="",$current_folder="",$key="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['av_gallery_title']} $title</div>
<form action="{$this->ipsclass->base_url}act=UserCP&CODE=getgallery" method="post">
<div id="padandcenter"><b>{$this->ipsclass->lang['av_gall_jump']}</b> $av_gals <input type="submit" class='button' value="{$this->ipsclass->lang['av_go_go']}" name="submit" /></div>
</form>
<form action="{$this->ipsclass->base_url}auth_key=$key" method="post">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="setinternalavatar" />
<input type="hidden" name="current_folder" value="$current_folder" />
<table class='ipbtable' cellspacing="0">
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_limits:desc:>
//===========================================================================
function avatar_limits() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['av_settings']}</div>
<p>{$this->ipsclass->lang['av_text_url']} {$this->ipsclass->lang['av_text_upload']}<br />{$this->ipsclass->lang['av_allowed_files']}</p>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_main:desc:>
//===========================================================================
function avatar_main($data="",$formextra="",$hidden_field="",$key="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
<!--
var url_input = "{$data['current_url_avatar']}";
var remove_pressed = 0;
function select_url(){
restore_it();
}
function select_upload(){
try{
if ( document.creator.url_avatar.value != "" ) {
url_input = document.creator.url_avatar.value;
}
document.creator.url_avatar.value = "";
}
catch(nourl){
return true;
}
}
function restore_it(){
if (url_input != ""){
document.creator.url_avatar.value = url_input;
}
}
function checkform(){
if ( remove_pressed != 1 ){
return true;
}
else{
fcheck = confirm("{$this->ipsclass->lang['av_confirm']}");
if ( fcheck == true ){
return true;
}
else{
return false;
}
}
}
-->
</script>
<!--IBF.LIMITS_AVATAR-->
<div class="formsubtitle">{$this->ipsclass->lang['av_current']}</div>
<div class="tablepad" align="center">{$data['current_avatar_image']}<br />{$data['current_avatar_type']} {$data['current_avatar_dims']}</div>
<div class="formsubtitle">{$this->ipsclass->lang['avatar_pre_title']}</div>
<form action="{$this->ipsclass->base_url}act=UserCP&CODE=getgallery" method="post">
<table class='ipbtable' cellspacing="0">
<tr>
<td class="pformleft">{$this->ipsclass->lang['av_go_gal']}</td>
<td class="pformright">{$data['avatar_galleries']} <input type="submit" class='button' value="{$this->ipsclass->lang['av_go_go']}" name="submit" /></td>
</tr>
</table>
</form>
<form action="{$this->ipsclass->base_url}auth_key=$key" method="post" $formextra name="creator" onsubmit="return checkform();">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="25" />
$hidden_field
<!--IBF.EXTERNAL_TITLE-->
<!--IBF.URL_AVATAR-->
<!--IBF.UPLOAD_AVATAR-->
<!--IPB.SIZE-->
<div align="center" class="formsubtitle">
<input type="submit" name="submit" value="{$this->ipsclass->lang['av_update']}" class='button' />
<input type="submit" name="remove" onclick="remove_pressed=1;" class='button' value="{$this->ipsclass->lang['av_remove']}" />
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_mansize:desc:>
//===========================================================================
function avatar_mansize() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td class="pformleft"> </td>
<td class="pformright"><b>{$this->ipsclass->lang['width']}</b> <input type="text" size="3" name="man_width" /> <b>{$this->ipsclass->lang['height']}</b> <input type="text" size="3" name="man_height" /></td>
</tr>
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_upload_field:desc:>
//===========================================================================
function avatar_upload_field() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td class="pformleft">{$this->ipsclass->lang['av_upload']}</td>
<td class="pformright"><input type="file" size="30" name="upload_avatar" onfocus="select_upload()" onclick="select_upload()" /></td>
</tr>
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:avatar_url_field:desc:>
//===========================================================================
function avatar_url_field($avatar="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td class="pformleft">{$this->ipsclass->lang['av_url']}</td>
<td class="pformright"><input type="text" size="40" maxlength="80" name="url_avatar" value="$avatar" onfocus="select_url()" /> (<a href="javascript:restore_it()">{$this->ipsclass->lang['pp_restore']}</a>)</td>
</tr>
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:birthday:desc:>
//===========================================================================
function birthday($day="",$month="",$year="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="pformleft"><b>{$this->ipsclass->lang['birthday']}</b></td>
<td class="pformright">
<select name="day">
{$day}
</select>
<select name="month">
{$month}
</select>
<select name="year">
{$year}
</select>
</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:CP_end:desc:>
//===========================================================================
function CP_end() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</div>
</td>
</tr>
</table>
<!-- end main CP area -->
<br style="clear: all;" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:dead_section:desc:>
//===========================================================================
function dead_section() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['dead_section_title']}</div>
<p>
{$this->ipsclass->lang['dead_section_text']}
</p>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:email:desc:>
//===========================================================================
function email($Profile="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}auth_key={$Profile['key']}" method="post">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="03" />
<div class="formsubtitle">{$this->ipsclass->lang['privacy_settings']}</div>
<table class='ipbtable' cellspacing="0">
<tr>
<td align="right" valign="top"><input type="checkbox" name="hide_email" value="1" {$Profile['hide_email']} /></td>
<td width="100%">{$this->ipsclass->lang['hide_email']}</td>
</tr>
<tr>
<td align="right" valign="top"><input type="checkbox" name="admin_send" value="1" {$Profile['allow_admin_mails']} /></td>
<td width="100%">{$this->ipsclass->lang['admin_send']}</td>
</tr>
</table>
<br />
<div class="formsubtitle">{$this->ipsclass->lang['board_prefs']}</div>
<table class='ipbtable' cellspacing="0">
<tr>
<td align="right" valign="top"><input type="checkbox" name="send_full_msg" value="1" {$Profile['email_full']} /></td>
<td width="100%">{$this->ipsclass->lang['send_full_msg']}</td>
</tr>
<tr>
<td align="right" valign="top"><input type="checkbox" name="pm_reminder" value="1" {$Profile['email_pm']} /></td>
<td width="100%">{$this->ipsclass->lang['pm_reminder']}</td>
</tr>
<tr>
<td align="right" valign="top"><input type="checkbox" name="auto_track" value="1" {$Profile['auto_track']} /></td>
<td width="100%">
{$this->ipsclass->lang['auto_track']}
<select name="trackchoice">
<option value="none">{$this->ipsclass->lang['subs_none_title']}</option>
<option value="immediate">{$this->ipsclass->lang['subs_immediate']}</option>
<option value="delayed">{$this->ipsclass->lang['subs_delayed']}</option>
<option value="daily">{$this->ipsclass->lang['subs_daily']}</option>
<option value="weekly">{$this->ipsclass->lang['subs_weekly']}</option>
</select>
<br />
{$this->ipsclass->lang['auto_track_desc']}
</td>
</tr>
<tr>
<td class="formbuttonrow" colspan="2"><input type="submit" class='button' value="{$this->ipsclass->lang['submit_email']}" /></td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:email_change:desc:>
//===========================================================================
function email_change($txt="",$msg="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
var msg = "$msg";
if ( msg != ""){
alert(msg);
}
</script>
<form action="{$this->ipsclass->base_url}" method="post" name="form1">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="09" />
<div class="formsubtitle">{$this->ipsclass->lang['change_email_title']}</div>
<p>
$txt
</p>
<table class='ipbtable' cellspacing="0">
<tr>
<td width="40%"><b>{$this->ipsclass->lang['ce_new_email']}</b></td>
<td><input type="text" name="in_email_1" value="" /></td>
</tr>
<tr>
<td><b>{$this->ipsclass->lang['ce_new_email2']}</b></td>
<td><input type="text" name="in_email_2" value="" /></td>
</tr>
<tr>
<td><b>{$this->ipsclass->lang['ec_passy']}</b></td>
<td><input type="password" name="password" value="" /></td>
</tr>
</table>
<!--ANTIBOT-->
<div class="formsubtitle" style="text-align: center;"><input type="submit" class='button' name="change_email" value="{$this->ipsclass->lang['account_email_submit']}" /></div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:email_change_gd:desc:>
//===========================================================================
function email_change_gd($regid="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['ras_title']}</div>
<table class='ipbtable' cellspacing="0">
<tr>
<td width="40%">{$this->ipsclass->lang['ras_numbers']}</td>
<td>
<input type="hidden" name="regid" value="$regid" />
<img src="{$this->ipsclass->base_url}act=UserCP&CODE=show_image&rc={$regid}" alt="Code Bit" />
</td>
</tr>
<tr>
<td width="40%">{$this->ipsclass->lang['ras_text']}</td>
<td><input type="text" size="32" maxlength="32" name="reg_code" /></td>
</tr>
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:email_change_img:desc:>
//===========================================================================
function email_change_img($regid="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['ras_title']}</div>
<table class='ipbtable' cellspacing="0">
<tr>
<td width="40%">{$this->ipsclass->lang['ras_numbers']}</td>
<td>
<input type="hidden" name="regid" value="$regid" />
<img src="{$this->ipsclass->base_url}act=UserCP&CODE=show_image&rc={$regid}&p=1" alt="Code Bit" />
<img src="{$this->ipsclass->base_url}act=UserCP&CODE=show_image&rc={$regid}&p=2" alt="Code Bit" />
<img src="{$this->ipsclass->base_url}act=UserCP&CODE=show_image&rc={$regid}&p=3" alt="Code Bit" />
<img src="{$this->ipsclass->base_url}act=UserCP&CODE=show_image&rc={$regid}&p=4" alt="Code Bit" />
<img src="{$this->ipsclass->base_url}act=UserCP&CODE=show_image&rc={$regid}&p=5" alt="Code Bit" />
<img src="{$this->ipsclass->base_url}act=UserCP&CODE=show_image&rc={$regid}&p=6" alt="Code Bit" />
</td>
</tr>
<tr>
<td width="40%">{$this->ipsclass->lang['ras_text']}</td>
<td><input type="text" size="32" maxlength="32" name="reg_code" /></td>
</tr>
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:field_dropdown:desc:>
//===========================================================================
function field_dropdown($name="",$options="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<select name="$name">
$options
</select>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:field_entry:desc:>
//===========================================================================
function field_entry($title="",$desc="",$content="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="pformleft" valign="top"><b>$title</b><br />$desc</td>
<td class="pformright">$content</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:field_textarea:desc:>
//===========================================================================
function field_textarea($name="",$value="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<textarea cols="60" rows="5" wrap="soft" name="$name">$value</textarea>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:field_textinput:desc:>
//===========================================================================
function field_textinput($name="",$value="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="text" size="50" name="$name" value='$value' />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:forum_jump:desc:>
//===========================================================================
function forum_jump($data="",$menu_extra="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="borderwrap">
<div align="right" class="row1" style="padding: 5px;">{$data}</div>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:forum_subs_end:desc:>
//===========================================================================
function forum_subs_end() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td align="right" class="formbuttonrow" valign="middle" colspan="6">
<select name="trackchoice">
<option value="unsubscribe">{$this->ipsclass->lang['subs_delete']}</option>
<option value="none">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_none_title']}</option>
<option value="immediate">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_immediate']}</option>
<option value="delayed">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_delayed']}</option>
<option value="daily">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_daily']}</option>
<option value="weekly">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_weekly']}</option>
</select>
<input type="submit" class="button" value="{$this->ipsclass->lang['with_selected']}" />
</td>
</tr>
</table>
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:forum_subs_header:desc:>
//===========================================================================
function forum_subs_header() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}" name="mutliact" method="post">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="51" />
<div class="formsubtitle">{$this->ipsclass->lang['forum_subs_header']}</div>
<div class="borderwrapm">
<table class='ipbtable' cellspacing="1">
<tr>
<th width="5%"> </th>
<th width="50%">{$this->ipsclass->lang['ft_forum']}</th>
<th align="center" width="5%">{$this->ipsclass->lang['ft_topics']}</th>
<th align="center" width="5%">{$this->ipsclass->lang['ft_posts']}</th>
<th align="center" width="35%">{$this->ipsclass->lang['ft_last_post']}</th>
<th width="1%"> </th>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:forum_subs_none:desc:>
//===========================================================================
function forum_subs_none() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" align="center" colspan="6">{$this->ipsclass->lang['forum_subs_none']}</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:forum_subs_row:desc:>
//===========================================================================
function forum_subs_row($data="",$type="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" align="center" width="5%">{$data['folder_icon']}</td>
<td class="row1">
<b><a href="{$this->ipsclass->base_url}act=SF&f={$data['id']}">{$data['name']}</a></b>
<div class="desc">
{$data['description']}
<br />
{$this->ipsclass->lang['subs_c_type']}: {$this->ipsclass->lang[$type]}
</div>
</td>
<td class="row1" align="center">{$data['topics']}</td>
<td class="row1" align="center">{$data['posts']}</td>
<td class="row1">{$data['last_post']}<br />{$this->ipsclass->lang['in']} {$data['last_topic']}<br />{$this->ipsclass->lang['by']} {$data['last_poster']}</td>
<td class="row1" align="center"><input type="checkbox" name="id-{$data['forum_id']}" value="yes" /></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:iu_add_new:desc:>
//===========================================================================
function iu_add_new() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td colspan="4" class="formsubtitle">{$this->ipsclass->lang['mi5_addem']}</td>
</tr>
<tr>
<td colspan="2" class="row1"><input type="text" name="newbox_1" value="{$this->ipsclass->input['newbox_1']}" /></td>
<td colspan="2" class="row2"><input type="button" class='button' value="{$this->ipsclass->lang['mi5_finduser']}" name="findusers" onclick="find_users('newbox_1')" /></td>
</tr>
<tr>
<td colspan="2" class="row1"><input type="text" name="newbox_2" value="{$this->ipsclass->input['newbox_2']}" /></td>
<td colspan="2" class="row2"><input type="button" class='button' value="{$this->ipsclass->lang['mi5_finduser']}" onclick="find_users('newbox_2')" /></td>
</tr>
<tr>
<td colspan="2" class="row1"><input type="text" name="newbox_3" value="{$this->ipsclass->input['newbox_3']}" /></td>
<td colspan="2" class="row2"><input type="button" class='button' value="{$this->ipsclass->lang['mi5_finduser']}" onclick="find_users('newbox_3')" /></td>
</tr>
<tr>
<td class="formbuttonrow" colspan="4"><input type="submit" class='button' value="{$this->ipsclass->lang['mi5_edit']}" /></td>
</tr>
</table>
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:iu_populated_row:desc:>
//===========================================================================
function iu_populated_row($member="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td><b><a href="{$this->ipsclass->base_url}showuser={$member['id']}">{$member['members_display_name']}</a></b></td>
<td>{$member['prefix']}{$member['g_title']}{$member['suffix']}</td>
<td>{$member['posts']}</td>
<td><a href="{$this->ipsclass->base_url}act=UserCP&CODE=ignoreremove&id={$member['id']}">{$this->ipsclass->lang['mi5_remove']}</a></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:iu_start:desc:>
//===========================================================================
function iu_start() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
<!--
function find_users(field){
url = "index.{$this->ipsclass->vars['php_ext']}?act=legends&CODE=finduser_one&s={$this->ipsclass->session_id}&entry=textarea&name="+field+"&sep=none";
window.open(url,"FindUsers","width=400,height=250,resizable=yes,scrollbars=yes");
}
-->
</script>
<form action="{$this->ipsclass->base_url}" method="post" name="REPLIER">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="ignoreadd" />
<div class="formsubtitle">{$this->ipsclass->lang['mi5_title']}</div>
<p>{$this->ipsclass->lang['mi5_text']}</p>
<div class="borderwrapm">
<table class='ipbtable' cellspacing="1">
<tr>
<th width="30%">{$this->ipsclass->lang['mi5_name']}</th>
<th width="30%">{$this->ipsclass->lang['mi5_group']}</th>
<th width="20%">{$this->ipsclass->lang['mi5_posts']}</th>
<th width="20%"> </th>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:member_title:desc:>
//===========================================================================
function member_title($title="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="pformleft"><b>{$this->ipsclass->lang['member_title']}</b></td>
<td class="pformright"><input type="text" size="40" maxlength="120" name="member_title" value="$title" /></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:Menu_bar:desc:>
//===========================================================================
function Menu_bar($component_html="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<!--
TABLE TO FIX IE/6 ISSUE
The one where 23% margin + 100% table = 123% in IE6 o_O
-->
<script type="text/javascript" src="jscripts/ipb_pm.js"></script>
<script type="text/javascript" src="jscripts/ipb_usercp.js"></script>
<table class='ipbtable' cellspacing="0">
<tr>
<td valign="top" class="nopad" width="25%">
<div id="ucpmenu">
<div class="maintitle">{$this->ipsclass->lang['tt_menu']}</div>
<!-- Messenger Links -->
EOF;
//startif
if ( $this->ipsclass->member['g_use_pm'] == 1 AND $this->ipsclass->member['members_disable_pm'] == 0 )
{
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['m_messenger']}</div>
<p>
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=04"><b>{$this->ipsclass->lang['mess_new']}</b></a><br />
<!--IBF.FOLDER_LINKS-->
<{MSG_FOLDER}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=20">{$this->ipsclass->lang['mess_saved']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=delete">{$this->ipsclass->lang['mi_prune_msg']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=07">{$this->ipsclass->lang['mess_folders']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=02">{$this->ipsclass->lang['mess_contact']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=14">{$this->ipsclass->lang['mess_archive']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=30">{$this->ipsclass->lang['mess_tracker']}</a><br />
</p>
<!-- End Messenger -->
EOF;
}//endif
//startif
if ( $component_html != "" )
{
$IPBHTML .= <<<EOF
$component_html
EOF;
}//endif
$IPBHTML .= <<<EOF
<!-- Topic Tracker -->
<div class="formsubtitle">{$this->ipsclass->lang['m_tracker']}</div>
<p>
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=26">{$this->ipsclass->lang['m_view_subs']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=50">{$this->ipsclass->lang['m_view_forum']}</a><br />
</p>
<!-- Profile -->
<div class="formsubtitle">{$this->ipsclass->lang['m_personal']}</div>
<p>
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=01">{$this->ipsclass->lang['m_contact_info']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=22">{$this->ipsclass->lang['m_sig_info']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=24">{$this->ipsclass->lang['m_avatar_info']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=photo">{$this->ipsclass->lang['m_change_photo']}</a><br />
EOF;
//startif
if ( $this->ipsclass->vars['auth_allow_dnames'] == 1 AND $this->ipsclass->member['g_dname_changes'] > 0 )
{
$IPBHTML .= <<<EOF
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=dname_start">{$this->ipsclass->lang['m_dname_change']}</a>
EOF;
}//endif
$IPBHTML .= <<<EOF
</p>
<!-- Options -->
<div class="formsubtitle">{$this->ipsclass->lang['m_options']}</div>
<p>
<!--IBF.OPTION_LINKS-->
EOF;
//startif
if ( $this->ipsclass->member['g_attach_max'] != -1 )
{
$IPBHTML .= <<<EOF
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=attach">{$this->ipsclass->lang['m_attach']}</a><br />
EOF;
}//endif
$IPBHTML .= <<<EOF
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=ignore">{$this->ipsclass->lang['m_ignore_users']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=02">{$this->ipsclass->lang['m_email_opt']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=04">{$this->ipsclass->lang['m_board_opt']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=08">{$this->ipsclass->lang['m_email_change']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=28">{$this->ipsclass->lang['m_passy_opt']}</a>
</p>
EOF;
//startif
if ( $this->ipsclass->member['g_is_supmod'] == 1 )
{
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['menu_title_mod']}</div>
<p>
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=iptool">{$this->ipsclass->lang['menu_ipsearch']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=memtool">{$this->ipsclass->lang['menu_memsearch']}</a><br />
<{ITEM_START}> <a href="{$this->ipsclass->base_url}act=UserCP&CODE=announce_start">{$this->ipsclass->lang['menu_announcements']}</a>
</p>
EOF;
}//endif
$IPBHTML .= <<<EOF
</div>
</td>
<td class="nopad" width="1%"><!-- --></td>
<!-- Start main CP area -->
<td valign="top" class="nopad" width="75%">
<div id="ucpcontent">
<div class="maintitle">{$this->ipsclass->lang['welcome']}</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:menu_bar_msg_folder_link:desc:>
//===========================================================================
function menu_bar_msg_folder_link($id="",$real="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<{MSG_FOLDER}> <a href="{$this->ipsclass->base_url}act=Msg&CODE=01&VID=$id">$real</a><br />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:menu_bar_new_category:desc:>
//===========================================================================
function menu_bar_new_category($title="",$content="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$title}</div>
<p>
$content
</p>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:menu_bar_new_link:desc:>
//===========================================================================
function menu_bar_new_link($url="",$name="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<{ITEM_START}> <a href="$url">$name</a><br />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mod_find_user:desc:>
//===========================================================================
function mod_find_user($msg="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form name="ibform" action="{$this->ipsclass->base_url}act=usercp&CODE=domemtool" method="post">
EOF;
//startif
if ( $msg )
{
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['ipm_title']}</div>
<p>
$msg
</p>
<br />
EOF;
}//endif
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['cp_edit_user']}</div>
<table class='ipbtable' cellspacing="1">
<tr>
<td width="40%" class="row1">{$this->ipsclass->lang['cp_find_user']}</td>
<td class="row1"><input type="text" size="40" name="name" value="{$this->ipsclass->input['name']}" /></td>
</tr>
<tr>
<td class="formbuttonrow" colspan="2"><input type="submit" class='button' value="{$this->ipsclass->lang['cp_find_submit']}" /></td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mod_ip_member_results:desc:>
//===========================================================================
function mod_ip_member_results($pages="",$content="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div>
<div class="borderwrapm">
<table class='ipbtable' cellspacing="0">
<tr>
<th width="20%">{$this->ipsclass->lang['ipm_name']}</th>
<th width="20%">{$this->ipsclass->lang['ipm_ip']}</th>
<th width="10%">{$this->ipsclass->lang['ipm_posts']}</th>
<th width="15%">{$this->ipsclass->lang['ipm_reg']}</th>
<th width="15%">{$this->ipsclass->lang['ipm_group']}</th>
<th width="20%">{$this->ipsclass->lang['ipm_options']}</th>
</tr>
{$content}
</table>
</div>
<div>$pages</div>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mod_ip_member_row:desc:>
//===========================================================================
function mod_ip_member_row($row="",$auth_key="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1"><a href="{$this->ipsclass->base_url}showuser={$row['id']}">{$row['members_display_name']}</a></td>
<td class="row1">{$row['ip_address']}</td>
<td class="row1">{$row['posts']}</td>
<td class="row1">{$row['joined']}</td>
<td class="row1">{$row['groupname']}</td>
<td class="row1" align="center"><a href="{$this->ipsclass->base_url}act=mod&CODE=editmember&mid={$row['id']}&auth_key=$auth_key">{$this->ipsclass->lang['ipm_edit']}</a></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mod_ip_post_results:desc:>
//===========================================================================
function mod_ip_post_results($uid="",$count="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
{$this->ipsclass->lang['ipp_found']} $count
<br />
<br />
<a target="_blank" href="{$this->ipsclass->base_url}act=Search&CODE=show&searchid=$uid&search_in=posts&result_type=posts">{$this->ipsclass->lang['ipp_click']}</a>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mod_ip_start_form:desc:>
//===========================================================================
function mod_ip_start_form($ip="",$msg="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form name="ibform" action="{$this->ipsclass->base_url}" method="post">
<input type="hidden" name="s" value="{$this->ipsclass->session_id}" />
<input type="hidden" name="act" value="usercp" />
<input type="hidden" name="CODE" value="doiptool" />
EOF;
//startif
if ( $msg )
{
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['ipm_title']}</div>
<p>
$msg
</p>
<br />
EOF;
}//endif
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['menu_ipsearch']}</div>
<table class='ipbtable' cellspacing="0">
<tr>
<td width="40%" class="row1">{$this->ipsclass->lang['ip_enter']}</td>
<td class="row1">
<input type="text" size="20" maxlength="24" name="ip" value="{$ip}" />
<select name="iptool">
<option value="resolve">{$this->ipsclass->lang['ip_resolve']}</option>
<option value="posts">{$this->ipsclass->lang['ip_posts']}</option>
<option value="members">{$this->ipsclass->lang['ip_members']}</option>
</select>
</td>
</tr>
<tr>
<td class="formsubtitle" style="text-align: center;" colspan="2"><input type="submit" class='button' value="{$this->ipsclass->lang['ip_submit']}" /></td>
</tr>
</table>
</form>
<br />
<div class="tablepad">
{$this->ipsclass->lang['ip_desc_text']}
<br /><br />{$this->ipsclass->lang['ip_warn_text']}
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:pass_change:desc:>
//===========================================================================
function pass_change() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}" method="post" name="form1">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="29" />
<div class="formsubtitle">{$this->ipsclass->lang['account_pass_title']}</div>
<p>{$this->ipsclass->lang['pass_change_text']}</p>
<table class='ipbtable' cellspacing="0">
<tr>
<td><b>{$this->ipsclass->lang['account_pass_old']}</b></td>
<td><input type="password" name="current_pass" value="" /></td>
</tr>
<tr>
<td><b>{$this->ipsclass->lang['account_pass_new']}</b></td>
<td><input type="password" name="new_pass_1" value="" /></td>
</tr>
<tr>
<td><b>{$this->ipsclass->lang['account_pass_new2']}</b></td>
<td><input type="password" name="new_pass_2" value="" /></td>
</tr>
<tr>
<td class="formbuttonrow" colspan="2"><input type="submit" class='button' name="s_pass" value="{$this->ipsclass->lang['account_pass_submit']}" /></td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:personal_panel:desc:>
//===========================================================================
function personal_panel($Profile="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
<!--
var LocationMax = "{$this->ipsclass->vars['max_location_length']}";
var InterestMax = "{$this->ipsclass->vars['max_interest_length']}";
function CheckLength(Type){
LocationLength = document.theForm.Location.value.length;
InterestLength = document.theForm.Interests.value.length;
message = "";
if (Type == "location"){
if (LocationMax !=0) {
message = "{$this->ipsclass->lang['js_location']}: {$this->ipsclass->lang['js_max']} " + LocationMax + " {$this->ipsclass->lang['js_characters']}.";
}
else{
message = "";
}
alert(message + " {$this->ipsclass->lang['js_used']} " + LocationLength + " {$this->ipsclass->lang['js_so_far']}.");
}
if (Type == "interest"){
if (InterestMax !=0){
message = "{$this->ipsclass->lang['js_interests']}: {$this->ipsclass->lang['js_max']} " + InterestMax + " {$this->ipsclass->lang['js_characters']}.";
}
else{
message = "";
}
alert(message + " {$this->ipsclass->lang['js_used']} " + InterestLength + " {$this->ipsclass->lang['js_so_far']}.");
}
}
function ValidateProfile(){
LocationLength = document.theForm.Location.value.length;
InterestLength = document.theForm.Interests.value.length;
errors = "";
if (LocationMax !=0){
if (LocationLength > LocationMax) {
errors = "{$this->ipsclass->lang['js_location']}: {$this->ipsclass->lang['js_max']} " + LocationMax + " {$this->ipsclass->lang['js_characters']}. {$this->ipsclass->lang['js_used']}: " + LocationLength;
}
}
if (InterestMax !=0){
if (InterestLength > InterestMax){
errors = errors + " {$this->ipsclass->lang['js_interests']}: {$this->ipsclass->lang['js_max']} " + InterestMax + " {$this->ipsclass->lang['js_characters']}. {$this->ipsclass->lang['js_used']}: " + InterestLength;
}
}
if (errors != ""){
alert(errors);
return false;
}
else{
return true;
}
}
-->
</script>
<form action="{$this->ipsclass->base_url}auth_key={$Profile['key']}" method="post" name="theForm" onsubmit="return ValidateProfile()">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="21" />
<!--{REQUIRED.FIELDS}-->
<div class="formsubtitle">{$this->ipsclass->lang['profile_title']}</div>
<table class='ipbtable' cellspacing="0">
<!--{MEMBERTITLE}-->
<!--{BIRTHDAY}-->
<tr>
<td class="pformleft">{$this->ipsclass->lang['website']}</td>
<td class="pformright"><input type="text" size="40" maxlength="1200" name="WebSite" value="{$Profile['website']}" /></td>
</tr>
<tr>
<td class="pformleft">{$this->ipsclass->lang['icq']}</td>
<td class="pformright"><input type="text" size="40" maxlength="20" name="ICQNumber" value="{$Profile['icq_number']}" /></td>
</tr>
<tr>
<td class="pformleft">{$this->ipsclass->lang['aol']}</td>
<td class="pformright"><input type="text" size="40" maxlength="30" name="AOLName" value="{$Profile['aim_name']}" /></td>
</tr>
<tr>
<td class="pformleft">{$this->ipsclass->lang['yahoo']}</td>
<td class="pformright"><input type="text" size="40" maxlength="30" name="YahooName" value="{$Profile['yahoo']}" /></td>
</tr>
<tr>
<td class="pformleft">{$this->ipsclass->lang['msn']}</td>
<td class="pformright"><input type="text" size="40" maxlength="30" name="MSNName" value="{$Profile['msnname']}" /></td>
</tr>
<tr>
<td class="pformleft">{$this->ipsclass->lang['location']}<br />(<a href="javascript:CheckLength('location');">{$this->ipsclass->lang['check_length']}</a>)</td>
<td class="pformright"><input type="text" size="40" name="Location" value="{$Profile['location']}" /></td>
</tr>
<tr>
<td class="pformleft" valign="top">{$this->ipsclass->lang['interests']}<br />(<a href="javascript:CheckLength('interest');">{$this->ipsclass->lang['check_length']}</a>)</td>
<td class="pformright"><textarea cols="60" rows="10" wrap="soft" name="Interests">{$Profile['interests']}</textarea></td>
</tr>
<!--{OPTIONAL.FIELDS}-->
<tr>
<td class="formbuttonrow" align="center" colspan="2"><input type="submit" class='button' value="{$this->ipsclass->lang['submit_profile']}" /></td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:photo_page:desc:>
//===========================================================================
function photo_page($cur_photo="",$cur_type="",$url_photo="",$show_size="",$key="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
<!--
var url_input = "$url_photo";
var remove_pressed = 0;
function clear_it(){
if ( document.bob.url_photo.value != "" ){
url_input = document.bob.url_photo.value;
}
document.bob.url_photo.value = "";
}
function restore_it(){
if (url_input != ""){
document.bob.url_photo.value = url_input;
}
}
function checkform(){
if ( remove_pressed != 1 ){
return true;
}
else{
fcheck = confirm("{$this->ipsclass->lang['pp_confirm']}");
if ( fcheck == true ){
return true;
}
else{
return false;
}
}
}
-->
</script>
<form action="{$this->ipsclass->base_url}auth_key=$key" enctype="multipart/form-data" method="post" name="bob" onsubmit="return checkform();">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="dophoto" />
<div class="formsubtitle">{$this->ipsclass->lang['pph_title']}</div>
<p>{$this->ipsclass->lang['pph_desc']}<br />{$this->ipsclass->lang['pph_max']}</p>
<div class="formsubtitle">{$this->ipsclass->lang['pph_current']}</div>
<div align="center">
<p>$cur_photo<br />$cur_type $show_size</p>
</div>
<div class="formsubtitle">{$this->ipsclass->lang['pph_change']}</div>
<table class='ipbtable' cellspacing="0">
<tr>
<td class="pformleft">{$this->ipsclass->lang['pph_url']}</td>
<td class="pformright"><input type="text" onfocus="restore_it()" name="url_photo" value="$url_photo" size="40" /> (<a href="javascript:restore_it()">{$this->ipsclass->lang['pp_restore']}</a>)</td>
</tr>
<!--IPB.UPLOAD-->
<!--IPB.SIZE-->
</table>
<div align="center" class="formsubtitle">
<input type="submit" class='button' name="submit" value="{$this->ipsclass->lang['pph_submit']}" />
<input type="submit" onclick="remove_pressed=1;" name="remove" value="{$this->ipsclass->lang['pph_remove']}" />
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:photo_page_autosize:desc:>
//===========================================================================
function photo_page_autosize() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="pformleft"> </td>
<td class="pformright"><b>{$this->ipsclass->lang['pph_autosize']}</b><br />({$this->ipsclass->lang['pph_as_desc']})</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:photo_page_mansize:desc:>
//===========================================================================
function photo_page_mansize() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="pformleft"> </td>
<td class="pformright"><b>{$this->ipsclass->lang['width']}</b> <input type="text" size="3" name="man_width" /> <b>{$this->ipsclass->lang['height']}</b> <input type="text" size="3" name="man_height" /></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:photo_page_upload:desc:>
//===========================================================================
function photo_page_upload($max_filesize="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="pformleft">{$this->ipsclass->lang['pph_upload']}</td>
<td class="pformright"><input type="hidden" name="MAX_FILE_SIZE" value="$max_filesize" /><input type="file" name="upload_photo" value="" size="40" onclick="clear_it()" /></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:required_end:desc:>
//===========================================================================
function required_end() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:required_title:desc:>
//===========================================================================
function required_title() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['cf_required']}</div>
<table class='ipbtable' cellspacing="0">
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:settings_end:desc:>
//===========================================================================
function settings_end($data="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['settings_display']}</div>
<table class='ipbtable' cellspacing="0">
<tr>
<td width="70%">{$this->ipsclass->lang['settings_viewsig']}</td>
<td>{$data[SIG]}</td>
</tr>
<tr>
<td>{$this->ipsclass->lang['settings_viewimg']}</td>
<td>{$data[IMG]}</td>
</tr>
<tr>
<td>{$this->ipsclass->lang['settings_viewava']}</td>
<td>{$data[AVA]}</td>
</tr>
EOF;
//startif
if ( $this->ipsclass->vars['awards_notice'] )
{
$IPBHTML .= <<<EOF
<tr>
<td>{$this->ipsclass->lang['settings_awards']}</td>
<td>{$data[AWARDS]}</td>
</tr>
EOF;
}//endif
$IPBHTML .= <<<EOF
<tr>
<td>{$this->ipsclass->lang['settings_dopopup']}</td>
<td>{$data[POP]}</td>
</tr>
<tr>
<td>{$this->ipsclass->lang['pp_number_posts']}</td>
<td>
<select name="postpage">
{$data['PPS']}
</select>
</td>
</tr>
<tr>
<td>{$this->ipsclass->lang['pp_number_topics']}</td>
<td><select name="topicpage">{$data['TPS']}</select></td>
</tr>
EOF;
//startif
if ( $this->ipsclass->member['members_disable_pm'] != 2 )
{
$IPBHTML .= <<<EOF
<tr>
<td class="formsubtitle" colspan="2">{$this->ipsclass->lang['ucp_op_pm_title']}</td>
</tr>
<tr>
<td>{$this->ipsclass->lang['ucp_op_pm']}<div class="desc">{$this->ipsclass->lang['ucp_op_pm_dowhat']}</div></td>
<td>{$data['PMS']}</td>
</tr>
EOF;
}//endif
$IPBHTML .= <<<EOF
<tr>
<td class="formsubtitle" colspan="2">{$this->ipsclass->lang['ucp_title_posting']}</td>
</tr>
<tr>
<td>{$this->ipsclass->lang['open_qr']}<div class="desc">{$this->ipsclass->lang['need_cookie_yum_yum']}</div></td>
<td>{$data[QR]}</td>
</tr>
EOF;
//startif
if ( $this->ipsclass->vars['posting_allow_rte'] == 1 )
{
$IPBHTML .= <<<EOF
<tr>
<td>{$this->ipsclass->lang['type_of_editor']}<div class='desc'>{$this->ipsclass->lang['rte_text']}</div></td>
<td>{$data['editor']}</td>
</tr>
EOF;
}//endif
$IPBHTML .= <<<EOF
<tr>
<td class="formsubtitle" colspan="2">{$this->ipsclass->lang['rep_settings']}</td>
</tr>
<tr>
<td>{$this->ipsclass->lang['rep_notify']}</td>
<td align='left'>{$data[REP_NOTIFY]}</td>
</tr>
<tr>
<td class="formbuttonrow" colspan="2">
<input type="submit" class='button' name="submit" value="{$this->ipsclass->lang['settings_submit']}" />
</td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:settings_header:desc:>
//===========================================================================
function settings_header($Profile="",$time_select="",$time="",$dst_check="",$key="",$dst_correction='') {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}auth_key=$key" method="post">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="05" />
<div class="formsubtitle">{$this->ipsclass->lang['settings_time']}</div>
<div style='padding:4px;'>
<fieldset>
<legend><strong>{$this->ipsclass->lang['settings_time_txt']}</strong></legend>
{$this->ipsclass->lang['settings_time_txt2']} $time
<br />
$time_select
</fieldset>
<br />
<fieldset>
EOF;
//startif
if ( $this->ipsclass->input['dsterror'] == 1 )
{
$IPBHTML .= <<<EOF
<div style='color:red;font-weight:bold'>
{$this->ipsclass->lang['dst_error']}
</div>
EOF;
}//endif
$IPBHTML .= <<<EOF
<legend><strong>{$this->ipsclass->lang['dst_correction_title']}</strong></legend>
<input type="checkbox" id='dst-check' onclick='toggle_dst()' name="DSTCHECK" value="1" $dst_correction /> <strong>{$this->ipsclass->lang['dst_auto']}</strong>
<div class='desc'>{$this->ipsclass->lang['dst_auto2']}</div>
<div id='dst-manual'>
<input type="checkbox" name="DST" value="1" $dst_check /> <strong>{$this->ipsclass->lang['dst_box']}</strong>
<div class='desc'>{$this->ipsclass->lang['dst_box2']}</div>
</div>
</fieldset>
</div>
<script type="text/javascript">
//<![CDATA[
function toggle_dst()
{
if ( document.getElementById( 'dst-check' ).checked )
{
document.getElementById( 'dst-manual' ).style.display = 'none';
}
else
{
document.getElementById( 'dst-manual' ).style.display = 'block';
}
}
toggle_dst();
//]]>
</script>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:signature:desc:>
//===========================================================================
function signature($preview_sig="",$editor_html="",$key="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form id='postingform' onsubmit='return ValidateForm()' action="{$this->ipsclass->base_url}act=UserCP&CODE=23" method="post" name="REPLIER">
<input type='hidden' name='key' value='{$key}' />
<input type='hidden' name='removeattachid' value='0' />
<div class="formsubtitle">{$this->ipsclass->lang['cp_current_sig']}</div>
<div class="signature" style="padding: 5px;">{$preview_sig}</div>
<div class="formsubtitle">{$this->ipsclass->lang['cp_edit_sig']}</div>
<div class='row1' align='center'>{$editor_html}</div>
<div class='formsubtitle' align='center'><input type="submit" class='button' value="{$this->ipsclass->lang['cp_submit_sig']}" /></div>
</form>
<br clear='all' />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:splash:desc:>
//===========================================================================
function splash($member="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$this->ipsclass->lang['stats_header']}</div>
EOF;
//startif
if ( $this->ipsclass->member['bio'] == "dupemail" )
{
$IPBHTML .= <<<EOF
<div><b>{$this->ipsclass->lang['conv_email_warning_title']}<br /><br />{$this->ipsclass->lang['conv_email_warning']}</b></div>
EOF;
}//endif
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td width="50%" valign="top">
<fieldset class="search">
<legend><b>{$this->ipsclass->lang['splash_attach']}</b></legend>
EOF;
//startif
if ( $member['attach_html'] != "" )
{
$IPBHTML .= <<<EOF
{$member['attach_html']}
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
<br /><br /><div align="center">{$this->ipsclass->lang['splash_noattach']}</div><br /><br />
EOF;
}//endelse
$IPBHTML .= <<<EOF
</fieldset>
</td>
<td width="50%" valign="top">
<fieldset class="search">
<legend><b>{$this->ipsclass->lang['stats_header']}</b></legend>
<table class='ipbtable' cellspacing="0">
<tr>
<td width="50%"><b>{$this->ipsclass->lang['email_address']}</b></td>
<td width="50%">{$member['member_email']}</td>
</tr>
<tr>
<td width="50%"><b>{$this->ipsclass->lang['number_posts']}</b></td>
<td width="50%">{$member['member_posts']}</td>
</tr>
<tr>
<td width="50%"><b>{$this->ipsclass->lang['registered']}</b></td>
<td width="50%">{$member['date_registered']}</td>
</tr>
<tr>
<td width="50%"><b>{$this->ipsclass->lang['daily_average']}</b></td>
<td width="50%">{$member['daily_average']}</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<script type="text/javascript" src="jscripts/ipb_forum.js"></script>
<div class="borderwrapm">
<div class="maintitle">{$this->ipsclass->lang['splash_last5']}</div>
<table class='ipbtable' cellspacing="1">
EOF;
//startif
if ( $member['topic_html'] != "" )
{
$IPBHTML .= <<<EOF
<tr>
<th width="40%" nowrap="nowrap" colspan="3">{$this->ipsclass->lang['h_topic_title']}</th>
<th width="7%" align="center" nowrap="nowrap">{$this->ipsclass->lang['h_replies']}</th>
<th width="14%" align="center" nowrap="nowrap">{$this->ipsclass->lang['h_topic_starter']}</th>
<th width="7%" align="center" nowrap="nowrap">{$this->ipsclass->lang['h_hits']}</th>
<th width="32%" nowrap="nowrap">{$this->ipsclass->lang['h_last_action']}</th>
</tr>
{$member['topic_html']}
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
<tr>
<td colspan="7" align="center"><b>{$this->ipsclass->lang['splash_nopost']}</b></td>
</tr>
EOF;
}//endelse
$IPBHTML .= <<<EOF
</table>
</div>
<div class="formsubtitle">{$this->ipsclass->lang['note_pad']}</div>
<div align="center" style='padding-bottom:6px;'>
<p>
<form name="notepad" action="{$this->ipsclass->base_url}" method="post">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="s" value="{$this->ipsclass->session_id}" />
<input type="hidden" name="CODE" value="20" />
<textarea cols="65" rows="{$member['SIZE']}" name="notes">{$member['NOTES']}</textarea>
<br />
{$this->ipsclass->lang['ta_size']}
<select name="ta_size">
{$member['SIZE_CHOICE']}
</select>
<input type="submit" class='button' value="{$this->ipsclass->lang['submit_notepad']}" />
</form>
</p>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:subs_end:desc:>
//===========================================================================
function subs_end($text="",$days="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td align="center" class="formbuttonrow" valign="middle" colspan="6">
<select name="trackchoice">
<option value="unsubscribe">{$this->ipsclass->lang['subs_delete']}</option>
<option value="none">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_none_title']}</option>
<option value="immediate">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_immediate']}</option>
<option value="delayed">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_delayed']}</option>
<option value="daily">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_daily']}</option>
<option value="weekly">{$this->ipsclass->lang['subs_c_change']} {$this->ipsclass->lang['subs_weekly']}</option>
</select>
<input type="submit" class="button" value="{$this->ipsclass->lang['with_selected']}" />
</td>
</tr>
</table>
</div>
</form>
<div align="right" style="padding: 5px;"><i>$text</i></div>
<div align="right" style="padding: 5px;">
<form action="{$this->ipsclass->base_url}act=UserCP&CODE=26" method="post">
{$this->ipsclass->lang['show_topics_from']}
<select name="datecut">
$days
</select>
<input type="submit" class='button' value="{$this->ipsclass->lang['jmp_go']}" />
</form>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:subs_forum_row:desc:>
//===========================================================================
function subs_forum_row($fid="",$fname="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td colspan="6" class="row1"><b>$fname</b></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:subs_header:desc:>
//===========================================================================
function subs_header() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<!-- inbox folder -->
<script type="text/javascript">
<!--
function CheckAll(cb){
var fmobj = document.mutliact;
for (var i=0;i<fmobj.elements.length;i++){
var e = fmobj.elements[i];
if ((e.name != "allbox") && (e.type=="checkbox") && (!e.disabled)){
e.checked = fmobj.allbox.checked;
}
}
}
function CheckCheckAll(cb){
var fmobj = document.mutliact;
var TotalBoxes = 0;
var TotalOn = 0;
for (var i=0;i<fmobj.elements.length;i++){
var e = fmobj.elements[i];
if ((e.name != "allbox") && (e.type=="checkbox")){
TotalBoxes++;
if (e.checked){
TotalOn++;
}
}
}
if (TotalBoxes==TotalOn) {fmobj.allbox.checked=true;}
else{
fmobj.allbox.checked=false;
}
}
-->
</script>
<script type="text/javascript" src="jscripts/ipb_forum.js"></script>
<div class="formsubtitle">{$this->ipsclass->lang['subs_header']}</div>
<form action="{$this->ipsclass->base_url}" name="mutliact" method="post">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="27" />
<div class="borderwrapm">
<table class='ipbtable' cellspacing="1">
<tr>
<th width="5%"> </th>
<th width="55%">{$this->ipsclass->lang['subs_topic']}</th>
<th align="center" width="5%">{$this->ipsclass->lang['subs_replies']}</th>
<th align="center" width="5%">{$this->ipsclass->lang['subs_view']}</th>
<th width="25%">{$this->ipsclass->lang['subs_last_post']}</th>
<th align="center" width="5%"><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();" /></th>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:subs_none:desc:>
//===========================================================================
function subs_none() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row2" align="center" colspan="6">{$this->ipsclass->lang['subs_none']}</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:subs_row:desc:>
//===========================================================================
function subs_row($data="",$type="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row2" align="center" width="5%">{$data['folder_img']}</td>
<td class="row2">
<a href="{$this->ipsclass->base_url}act=ST&f={$data['forum_id']}&t={$data['tid']}">{$data['title']}</a>
( <a href="{$this->ipsclass->base_url}act=ST&f={$data['forum_id']}&t={$data['tid']}" target="_blank">{$this->ipsclass->lang['new_window']}</a> )
<div class="desc">{$data['description']}{$this->ipsclass->lang['subs_start']} {$data['track_started']}
<br />
{$this->ipsclass->lang['subs_c_type']}: {$this->ipsclass->lang[$type]}
</div>
</td>
<td class="row2" align="center">{$data['posts']}</td>
<td class="row2" align="center">{$data['views']}</td>
<td class="row2">{$data['last_post_date']}<br />{$this->ipsclass->lang['subs_by']} {$data['last_poster']}</td>
<td class="row1" align="center"><input type="checkbox" name="id-{$data['trid']}" value="yes" /></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:subs_show_choice_page:desc:>
//===========================================================================
function subs_show_choice_page($forum="",$topic="",$method="",$key="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}" method="post" name="REPLIER">
<input type="hidden" name="act" value="usercp" />
<input type="hidden" name="CODE" value="end_subs" />
<input type="hidden" name="method" value="$method" />
<input type="hidden" name="auth_key" value="$key" />
<input type="hidden" name="tid" value="{$topic['tid']}" />
<input type="hidden" name="fid" value="{$forum['id']}" />
<input type="hidden" name="st" value="{$this->ipsclass->input['st']}" />
<div class="formsubtitle">{$this->ipsclass->lang['subs_c_title']}</div>
<div style='padding:4px'>
EOF;
//startif
if ( $topic['tid'] != "" )
{
$IPBHTML .= <<<EOF
<b>{$this->ipsclass->lang['subs_c_topic']} {$topic['title']}</b>
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
<b>{$this->ipsclass->lang['subs_c_forum']} {$forum['name']}</b>
EOF;
}//endelse
$IPBHTML .= <<<EOF
<div class="desc">{$this->ipsclass->lang['subs_exp_text']}</div>
</div>
<table cellspacing="0" width='100%'>
<tr>
<td width="5%" align="center"><input type="radio" name="emailtype" value="none" /></td>
<td><b>{$this->ipsclass->lang['subs_none_title']}</b><div class="desc">{$this->ipsclass->lang['subs_none_desc']}</div></td>
</tr>
<tr>
<td width="5%" align="center"><input type="radio" name="emailtype" value="delayed" checked="checked" /></td>
<td><b>{$this->ipsclass->lang['subs_delayed']}</b><div class="desc">{$this->ipsclass->lang['subs_delayed_desc']}</div></td>
</tr>
<tr>
<td width="5%" align="center"><input type="radio" name="emailtype" value="immediate" /></td>
<td><b>{$this->ipsclass->lang['subs_immediate']}</b><div class="desc">{$this->ipsclass->lang['subs_immediate_desc']}</div></td>
</tr>
<tr>
<td width="5%" align="center"><input type="radio" name="emailtype" value="daily" /></td>
<td><b>{$this->ipsclass->lang['subs_daily']}</b><div class="desc">{$this->ipsclass->lang['subs_daily_desc']}</div></td>
</tr>
<tr>
<td width="5%" align="center"><input type="radio" name="emailtype" value="weekly" /></td>
<td><b>{$this->ipsclass->lang['subs_weekly']}</b><div class="desc">{$this->ipsclass->lang['subs_weekly_desc']}</div></td>
</tr>
<tr>
<td class="formbuttonrow" colspan="2"><input type="submit" value="{$this->ipsclass->lang['subs_submit']}" class="button" /></td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:ucp_announce_form:desc:>
//===========================================================================
function ucp_announce_form($announce="",$button="",$forum_html="",$type="",$msg="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}" method="post" name="REPLIER">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="announce_save" />
<input type="hidden" name="type" value="$type" />
<input type="hidden" name="id" value="{$announce['announce_id']}" />
<div class="formsubtitle">{$button}</div>
EOF;
//startif
if ( $msg != "" )
{
$IPBHTML .= <<<EOF
<div class="borderwrapm"><div class="tablepad">{$msg}</div></div>
EOF;
}//endif
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="0">
<tr>
<td class="pformleft"><b>{$this->ipsclass->lang['announce_form_title']}</b></td>
<td class="pformright" valign="top"><input type="text" size="30" name="announce_title" value="{$announce['announce_title']}" /></td>
</tr>
<tr>
<td class="pformleft"><b>{$this->ipsclass->lang['announce_form_start']}</b><div class="desc">{$this->ipsclass->lang['announce_form_startdesc']}</div></td>
<td class="pformright" valign="top"><input type="text" size="10" name="announce_start" value="{$announce['announce_start']}" /></td>
</tr>
<tr>
<td class="pformleft"><b>{$this->ipsclass->lang['announce_form_end']}</b><div class="desc">{$this->ipsclass->lang['announce_form_enddesc']}</div></td>
<td class="pformright" valign="top"><input type="text" size="10" name="announce_end" value="{$announce['announce_end']}" /></td>
</tr>
<tr>
<td class="pformleft" valign="top"><b>{$this->ipsclass->lang['announce_form_forums']}</b><div class="desc">{$this->ipsclass->lang['announce_form_forums2']}</div></td>
<td class="pformright" valign="top"><select class="dropdown" multiple="multiple" size="10" name="announce_forum[]">{$forum_html}</select></td>
</tr>
<tr>
<td class="pformleft" valign="top"><b>{$this->ipsclass->lang['announce_form_content']}</b></td>
<td class="pformright" valign="top"><textarea cols="50" class="textarea" rows="15" name="announce_post" tabindex="3">{$announce['announce_post']}</textarea></td>
</tr>
<tr>
<td class="pformleft" valign="top"><b>{$this->ipsclass->lang['announce_form_options']}</b></td>
<td class="pformright" valign="middle">
<input type="checkbox" class="checkbox" name="announce_active" value="1" {$announce['announce_active_checked']} /> {$this->ipsclass->lang['announce_form_enable']}
<br /><input type="checkbox" class="checkbox" name="announce_html_enabled" value="1" {$announce['announce_html_enabled']} /> {$this->ipsclass->lang['announce_use_html']}
</td>
</tr>
<tr>
<td class="formbuttonrow" colspan="2"><input type="submit" value="{$button}" class="button" /></td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:ucp_announce_manage:desc:>
//===========================================================================
function ucp_announce_manage($content="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
<!--
var ipb_lang_js_del_1 = "{$this->ipsclass->lang['announce_del1']}";
var ipb_lang_js_del_2 = "{$this->ipsclass->lang['announce_del2']}";
-->
</script>
<script type="text/javascript" src="jscripts/ipb_topic.js"></script>
<div class="formsubtitle">{$this->ipsclass->lang['announce_current']}</div>
<form action="{$this->ipsclass->base_url}" name="mutliact" method="post">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="announce_alter" />
<div class="borderwrapm">
<table class='ipbtable' cellspacing="1">
<tr>
<th width="35%">{$this->ipsclass->lang['announce_title']}</th>
<th align="center" width="10%">{$this->ipsclass->lang['announce_starts']}</th>
<th align="center" width="10%">{$this->ipsclass->lang['announce_end']}</th>
<th width="25%">{$this->ipsclass->lang['announce_forums']}</th>
<th width="15%"> </th>
</tr>
EOF;
//startif
if ( $content )
{
$IPBHTML .= <<<EOF
$content
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
<tr>
<td align="center" colspan="5">{$this->ipsclass->lang['announce_none']}</td>
</tr>
EOF;
}//endelse
$IPBHTML .= <<<EOF
<tr>
<td class="formbuttonrow" colspan="5"><a href="{$this->ipsclass->base_url}act=usercp&CODE=announce_add">{$this->ipsclass->lang['announce_add']}</a></td>
</tr>
</table>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:ucp_announce_manage_row:desc:>
//===========================================================================
function ucp_announce_manage_row($announce="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1"><b><a href="{$this->ipsclass->base_url}act=announce&id={$announce['announce_id']}">{$announce['announce_title']}</a></b> {$announce['announce_inactive']}<div class="desc">{$this->ipsclass->lang['announce_by']} {$announce['members_display_name']}</div></td>
<td class="row1" align="center">{$announce['announce_starts_converted']}</td>
<td class="row1" align="center">{$announce['announce_end_converted']}</td>
<td class="row1"><div class="forumdesc">{$announce['announce_forum_show']}</div></td>
<td class="row1" align="center">
<a href="{$this->ipsclass->base_url}act=usercp&CODE=announce_edit&id={$announce['announce_id']}">{$this->ipsclass->lang['announce_edit']}</a>
· <a href="#" onclick="delete_post('{$this->ipsclass->base_url}act=usercp&CODE=announce_delete&id={$announce['announce_id']}'); return false;">{$this->ipsclass->lang['announce_delete']}</a>
</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:ucp_dname_change:desc:>
//===========================================================================
function ucp_dname_change($form=array(),$error="",$okmessage="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}&act=usercp&CODE=dname_complete" method="post" id='display-form' name="form1">
<div class="formsubtitle">{$this->ipsclass->lang['dname_title']}</div>
<p>{$form['_lang_string']}</p>
EOF;
//startif
if ( $okmessage != "" )
{
$IPBHTML .= <<<EOF
<div class='input-ok-content' id='dname-okbox'><strong>{$okmessage}</strong></div>
EOF;
}//endif
$IPBHTML .= <<<EOF
<div class='input-warn-content' id='dname-warnbox' style='display:none;'><strong>{$this->ipsclass->lang['dname_error_title']}</strong><div id='dname-warnbox-content'>{$error}</div></div>
<table class='ipbtable' cellspacing="0">
<tr>
<td width="40%"><strong>{$this->ipsclass->lang['dname_choose']}</strong><div class='desc'>{$this->ipsclass->lang['dname_choose2']}</div></td>
<td><input type="text" name="display_name" id='display-name' value="{$this->ipsclass->input['display_name']}" /> <img id='display-name-img' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' /></td>
</tr>
<tr>
<td width="40%"><strong>{$this->ipsclass->lang['dname_password']}</strong><div class='desc'>{$this->ipsclass->lang['dname_password2']}</div></td>
<td><input type="password" name="display_password" id='display-password' value="" /> <img id='display-password-img' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' /></td>
</tr>
</table>
<div class="formsubtitle" style="text-align: center;"><input type="submit" class='button' name="change_email" value="{$this->ipsclass->lang['dname_submit']}" /></div>
</form>
<script type="text/javascript">
//<![CDATA[
dname_error_no_name = "{$this->ipsclass->lang['dname_error_no_name']}";
dname_error_no_pass = "{$this->ipsclass->lang['dname_error_no_pass']}";
dname_error_chars = "{$this->ipsclass->lang['dname_error_chars']}";
dname_error_taken = "{$this->ipsclass->lang['dname_error_taken']}";
ucp_dname_init( 'display-name', 'display-password', 'display-form', 'dname-warnbox' );
//]]>
</script>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:ucp_message:desc:>
//===========================================================================
function ucp_message($title="",$msg="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class="formsubtitle">{$title}</div>
<p>$msg</p>
EOF;
//--endhtml--//
return $IPBHTML;
}
}
/*--------------------------------------------------*/
/*<changed bits>
settings_end
</changed bits>*/
/* END OF FILE */
/*--------------------------------------------------*/
?>