mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
#i62 - #i65
gone through every javascript invocation and making sure we adhere to our coding guidelines. git-svn-id: file:///svn/phpbb/trunk@8099 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
</object>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
if (document.rmstream_{_file.ATTACH_ID}.GetClipWidth)
|
||||
{
|
||||
while (!document.rmstream_{_file.ATTACH_ID}.GetClipWidth())
|
||||
@@ -107,13 +107,13 @@
|
||||
document.rmstream_{_file.ATTACH_ID}.height = height;
|
||||
document.ctrls_{_file.ATTACH_ID}.width = width;
|
||||
}
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF _file.S_WM_FILE or _file.S_RM_FILE or _file.S_FLASH_FILE or _file.S_QUICKTIME_FILE -->
|
||||
<p>
|
||||
<!-- IF _file.S_QUICKTIME_FILE --><a href="javascript:play_qt_file(document.qtstream_{_file.ATTACH_ID});">[ {L_PLAY_QUICKTIME_FILE} ]</a> <!-- ENDIF -->
|
||||
<!-- IF _file.S_QUICKTIME_FILE --><a href="#" onclick="play_qt_file(document.qtstream_{_file.ATTACH_ID}); return false;">[ {L_PLAY_QUICKTIME_FILE} ]</a> <!-- ENDIF -->
|
||||
<a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</p>
|
||||
<!-- ENDIF -->
|
||||
|
||||
|
@@ -5,9 +5,14 @@
|
||||
/**
|
||||
* Window popup
|
||||
*/
|
||||
function popup(url, width, height)
|
||||
function popup(url, width, height, name)
|
||||
{
|
||||
window.open(url.replace(/&/g, '&'), '_popup', 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
|
||||
if (!name)
|
||||
{
|
||||
name = '_popup';
|
||||
}
|
||||
|
||||
window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -1,24 +1,24 @@
|
||||
<!-- INCLUDE mcp_header.html -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
|
||||
var ban_length = new Array();
|
||||
ban_length[-1] = '';
|
||||
<!-- BEGIN ban_length -->
|
||||
ban_length['{ban_length.BAN_ID}'] = "{ban_length.A_LENGTH}";
|
||||
ban_length['{ban_length.BAN_ID}'] = '{ban_length.A_LENGTH}';
|
||||
<!-- END ban_length -->
|
||||
|
||||
var ban_reason = new Array();
|
||||
ban_reason[-1] = '';
|
||||
<!-- BEGIN ban_reason -->
|
||||
ban_reason['{ban_reason.BAN_ID}'] = "{ban_reason.A_REASON}";
|
||||
ban_reason['{ban_reason.BAN_ID}'] = '{ban_reason.A_REASON}';
|
||||
<!-- END ban_reason -->
|
||||
|
||||
var ban_give_reason = new Array();
|
||||
ban_give_reason[-1] = '';
|
||||
<!-- BEGIN ban_give_reason -->
|
||||
ban_give_reason['{ban_give_reason.BAN_ID}'] = "{ban_give_reason.A_REASON}";
|
||||
ban_give_reason['{ban_give_reason.BAN_ID}'] = '{ban_give_reason.A_REASON}';
|
||||
<!-- END ban_give_reason -->
|
||||
|
||||
function display_details(option)
|
||||
@@ -28,7 +28,7 @@
|
||||
document.getElementById('unbanlength').textContent = ban_length[option];
|
||||
}
|
||||
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<form id="mcp_ban" method="post" action="{U_ACTION}">
|
||||
@@ -45,7 +45,7 @@
|
||||
<dl>
|
||||
<dt><label for="ban">{L_BAN_CELL}:</label></dt>
|
||||
<dd><label for="ban"><textarea name="ban" id="ban" class="inputbox" cols="40" rows="3">{USERNAMES}</textarea></label></dd>
|
||||
<!-- IF S_USERNAME_BAN --><dd><strong><a href="#" onclick="window.open('{U_FIND_USER}', '_phpbbsearch', 'height=500, resizable=yes, scrollbars=yes, width=740'); return false;">{L_FIND_USERNAME}</a></strong></dd><!-- ENDIF -->
|
||||
<!-- IF S_USERNAME_BAN --><dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd><!-- ENDIF -->
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="banlength">{L_BAN_LENGTH}:</label></dt>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
<dl>
|
||||
<dt><label for="username">{L_SELECT_USER}:</label></dt>
|
||||
<dd><input name="username" id="username" type="text" class="inputbox" /></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
|
@@ -118,7 +118,7 @@
|
||||
<input class="inputbox autowidth" type="text" name="username" value="" />
|
||||
<input type="submit" class="button2" name="action[chgposter]" value="{L_CONFIRM}" />
|
||||
<br />
|
||||
<span>[ <a href="{U_FIND_USERNAME}" onclick="find_username(); return false;">{L_FIND_USERNAME}</a> ]</span>
|
||||
<span>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</span>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
@@ -3,9 +3,9 @@
|
||||
<h2><a href="{U_VIEW_TOPIC}">{L_TOPIC}: {TOPIC_TITLE}</a></h2>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
// <![CDATA[
|
||||
var panels = new Array('display-panel', 'split-panel', 'merge-panel');
|
||||
|
||||
<!-- IF S_MERGE_VIEW -->
|
||||
var show_panel = 'merge-panel';
|
||||
<!-- ELSEIF S_SPLIT_VIEW -->
|
||||
@@ -16,7 +16,7 @@ var panels = new Array('display-panel', 'split-panel', 'merge-panel');
|
||||
|
||||
onload_functions.push('subPanels()');
|
||||
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<div id="minitabs">
|
||||
@@ -96,7 +96,7 @@ onload_functions.push('subPanels()');
|
||||
<div class="inner"><span class="corners-top"><span></span></span>
|
||||
|
||||
<h3 id="review">
|
||||
<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{L_EXPAND_VIEW}'){rev_text.data = '{L_COLLAPSE_VIEW}'; } else if (rev_text.data == '{L_COLLAPSE_VIEW}'){rev_text.data = '{L_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span>
|
||||
<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span>
|
||||
{L_TOPIC_REVIEW}: {TOPIC_TITLE}
|
||||
</h3>
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
<dl>
|
||||
<dt><label for="username">{L_SELECT_USER}:</label></dt>
|
||||
<dd><input name="username" id="username" type="text" class="inputbox" /></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
|
@@ -120,7 +120,7 @@
|
||||
<!-- ENDIF -->
|
||||
|
||||
<tr class="<!-- IF memberrow.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
|
||||
<td><!-- IF memberrow.RANK_IMG --><span class="rank-img">{memberrow.RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.RANK_TITLE}</span><!-- ENDIF --><!-- IF S_IN_SEARCH_POPUP and not S_SELECT_SINGLE --><input type="checkbox" name="user" value="{memberrow.USERNAME}" /> <!-- ENDIF -->{memberrow.USERNAME_FULL}<!-- IF S_SELECT_SINGLE --><br />[ <a href="#" onclick="insert_single('{memberrow.USERNAME}'); return false;">{L_SELECT}</a> ]<!-- ENDIF --></td>
|
||||
<td><!-- IF memberrow.RANK_IMG --><span class="rank-img">{memberrow.RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.RANK_TITLE}</span><!-- ENDIF --><!-- IF S_IN_SEARCH_POPUP and not S_SELECT_SINGLE --><input type="checkbox" name="user" value="{memberrow.USERNAME}" /> <!-- ENDIF -->{memberrow.USERNAME_FULL}<!-- IF S_SELECT_SINGLE --><br />[ <a href="#" onclick="insert_single('{memberrow.A_USERNAME}'); return false;">{L_SELECT}</a> ]<!-- ENDIF --></td>
|
||||
<td class="posts"><!-- IF memberrow.POSTS --><a href="{memberrow.U_SEARCH_USER}" title="{L_SEARCH_USER_POSTS}">{memberrow.POSTS}</a><!-- ELSE -->{memberrow.POSTS}<!-- ENDIF --></td>
|
||||
<td class="info"><!-- IF memberrow.U_WWW or memberrow.LOCATION --><!-- IF memberrow.U_WWW --><div><a href="{memberrow.U_WWW}" title="{L_VISIT_WEBSITE}: {memberrow.U_WWW}">{memberrow.U_WWW}</a></div><!-- ENDIF --><!-- IF memberrow.LOCATION --><div>{memberrow.LOCATION}</div><!-- ENDIF --><!-- ELSE --> <!-- ENDIF --></td>
|
||||
<td>{memberrow.JOINED}</td>
|
||||
|
@@ -1,36 +1,8 @@
|
||||
<!-- INCLUDE overall_header.html -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function checkForm(formObj)
|
||||
{
|
||||
var formErrors = false;
|
||||
|
||||
if (formObj.message.value.length < 2 )
|
||||
{
|
||||
formErrors = "{L_EMPTY_MESSAGE_EMAIL}";
|
||||
}
|
||||
else if (formObj.subject.value.length < 2)
|
||||
{
|
||||
formErrors = "{L_EMPTY_SUBJECT_EMAIL}";
|
||||
}
|
||||
|
||||
if (formErrors)
|
||||
{
|
||||
alert(formErrors);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<h2 class="titlespace">{L_SEND_EMAIL_USER} {USERNAME}</h2>
|
||||
|
||||
<form method="post" action="{S_POST_ACTION}" id="post" onsubmit="return checkForm(this)">
|
||||
<form method="post" action="{S_POST_ACTION}" id="post">
|
||||
|
||||
<div class="panel">
|
||||
<div class="inner"><span class="corners-top"><span></span></span>
|
||||
|
@@ -37,8 +37,8 @@
|
||||
<!-- IF S_SEND_AIM -->
|
||||
<dl class="fields2">
|
||||
<dt> </dt>
|
||||
<dd><a href="aim:addbuddy?screenname={IM_CONTACT}">{L_IM_ADD_CONTACT}</a></dd>
|
||||
<dd><a href="aim:goim?screenname={IM_CONTACT}&message={SITENAME}">{L_IM_SEND_MESSAGE}</a></dd>
|
||||
<dd><a href="{U_AIM_CONTACT}">{L_IM_ADD_CONTACT}</a></dd>
|
||||
<dd><a href="{U_AIM_MESSAGE}">{L_IM_SEND_MESSAGE}</a></dd>
|
||||
<dd><a href="http://www.aim.com/download.adp">{L_IM_DOWNLOAD_APP}</a> | <a href="http://aimexpress.oscar.aol.com/aimexpress/launch.adp?Brand=AIM">{L_IM_AIM_EXPRESS}</a></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
@@ -46,9 +46,9 @@
|
||||
<!-- IF S_SEND_MSNM -->
|
||||
<dl class="fields2">
|
||||
<dt> </dt>
|
||||
<dd><object classid="clsid:FB7199AB-79BF-11d2-8D94-0000F875C541" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd>
|
||||
<dd><a href="#" onclick="objMessengerApp.LaunchAddContactUI('{IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd>
|
||||
<dd><a href="#" onclick="objMessengerApp.LaunchIMUI('{IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd>
|
||||
<dd><object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd>
|
||||
<dd><a href="#" onclick="add_contact('{A_IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd>
|
||||
<dd><a href="#" onclick="im_contact('{A_IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd>
|
||||
</dl>
|
||||
<!-- ENDIF -->
|
||||
|
||||
@@ -84,5 +84,74 @@
|
||||
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
/** The following will not work with Windows Vista **/
|
||||
|
||||
var app = document.getElementById('objMessengerApp');
|
||||
|
||||
/**
|
||||
* Check whether the browser supports this and whether MSNM is connected
|
||||
*/
|
||||
function msn_supported()
|
||||
{
|
||||
// Does the browser support the MSNM object?
|
||||
if (app.MyStatus)
|
||||
{
|
||||
// Is MSNM connected?
|
||||
if (app.MyStatus == 1)
|
||||
{
|
||||
alert('{LA_IM_MSNM_CONNECT}');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('{LA_IM_MSNM_BROWSER}');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to your contact list
|
||||
*/
|
||||
function add_contact(address)
|
||||
{
|
||||
if (msn_supported())
|
||||
{
|
||||
// Could return an error while MSNM is connecting, don't want that
|
||||
try
|
||||
{
|
||||
app.AddContact(0, address);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Write IM to contact
|
||||
*/
|
||||
function im_contact(address)
|
||||
{
|
||||
if (msn_supported())
|
||||
{
|
||||
// Could return an error while MSNM is connecting, don't want that
|
||||
try
|
||||
{
|
||||
app.InstantMessage(address);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<!-- INCLUDE simple_footer.html -->
|
@@ -1,7 +1,7 @@
|
||||
<!-- IF S_IN_SEARCH_POPUP -->
|
||||
<!-- You should retain this javascript in your own template! -->
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
function insert_user(user)
|
||||
{
|
||||
opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value = ( opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value.length && opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.type == "textarea" ) ? opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value + "\n" + user : user;
|
||||
@@ -35,7 +35,7 @@ function insert_single(user)
|
||||
opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value = user;
|
||||
self.close();
|
||||
}
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
|
||||
<!-- ENDIF -->
|
||||
|
@@ -60,11 +60,11 @@
|
||||
<!-- IF U_WWW --><dt>{L_WEBSITE}:</dt> <dd><a href="{U_WWW}" title="{L_VISIT_WEBSITE}: {U_WWW}">{U_WWW}</a></dd><!-- ENDIF -->
|
||||
<!-- IF U_PM --><dt>{L_PM}:</dt> <dd><a href="{U_PM}">{L_SEND_PRIVATE_MESSAGE}</a></dd>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF U_MSN or USER_MSN --><dt>{L_MSNM}:</dt> <dd><!-- IF U_MSN --><a href="{U_MSN}" onclick="popup('{U_MSN}', 550, 320); return false;">{L_SEND_MSNM_MESSAGE}</a><!-- ELSE -->{USER_MSN}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_YIM or USER_YIM --><dt>{L_YIM}:</dt> <dd><!-- IF U_YIM --><a href="{U_YIM}" onclick="popup('{U_YIM}', 780, 550); return false;">{L_SEND_YIM_MESSAGE}</a><!-- ELSE -->{USER_YIM}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_AIM or USER_AIM --><dt>{L_AIM}:</dt> <dd><!-- IF U_AIM --><a href="{U_AIM}" onclick="popup('{U_AIM}', 550, 320); return false;">{L_SEND_AIM_MESSAGE}</a><!-- ELSE -->{USER_AIM}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_ICQ or USER_ICQ --><dt>{L_ICQ}:</dt> <dd><!-- IF U_ICQ --><a href="{U_ICQ}" onclick="popup('{U_ICQ}', 550, 320); return false;">{L_SEND_ICQ_MESSAGE}</a><!-- ELSE -->{USER_ICQ}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_JABBER and S_JABBER_ENABLED --><dt>{L_JABBER}:</dt> <dd><a href="{U_JABBER}" onclick="popup('{U_JABBER}', 550, 320); return false;">{L_SEND_JABBER_MESSAGE}</a></dd><!-- ELSEIF USER_JABBER --><dt>{L_JABBER}:</dt> <dd>{USER_JABBER}</dd><!-- ENDIF -->
|
||||
<!-- IF U_MSN or USER_MSN --><dt>{L_MSNM}:</dt> <dd><!-- IF U_MSN --><a href="{U_MSN}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_MSNM_MESSAGE}</a><!-- ELSE -->{USER_MSN}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_YIM or USER_YIM --><dt>{L_YIM}:</dt> <dd><!-- IF U_YIM --><a href="{U_YIM}" onclick="popup(this.href, 780, 550); return false;">{L_SEND_YIM_MESSAGE}</a><!-- ELSE -->{USER_YIM}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_AIM or USER_AIM --><dt>{L_AIM}:</dt> <dd><!-- IF U_AIM --><a href="{U_AIM}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_AIM_MESSAGE}</a><!-- ELSE -->{USER_AIM}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_ICQ or USER_ICQ --><dt>{L_ICQ}:</dt> <dd><!-- IF U_ICQ --><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_ICQ_MESSAGE}</a><!-- ELSE -->{USER_ICQ}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_JABBER and S_JABBER_ENABLED --><dt>{L_JABBER}:</dt> <dd><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_JABBER_MESSAGE}</a></dd><!-- ELSEIF USER_JABBER --><dt>{L_JABBER}:</dt> <dd>{USER_JABBER}</dd><!-- ENDIF -->
|
||||
<!-- IF S_PROFILE_FIELD_1 -->
|
||||
<!-- NOTE: Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
|
||||
<dt>{postrow.PROFILE_FIELD1_NAME}:</dt> <dd>{postrow.PROFILE_FIELD1_VALUE}</dd>
|
||||
|
@@ -27,10 +27,10 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
var jump_page = '{L_JUMP_PAGE}:';
|
||||
var jump_page = '{LA_JUMP_PAGE}:';
|
||||
var on_page = '{ON_PAGE}';
|
||||
var per_page = '{PER_PAGE}';
|
||||
var base_url = '{BASE_URL}';
|
||||
var base_url = '{A_BASE_URL}';
|
||||
var style_cookie = 'phpBBstyle';
|
||||
var onload_functions = new Array();
|
||||
var onunload_functions = new Array();
|
||||
@@ -38,18 +38,16 @@
|
||||
<!-- IF S_USER_PM_POPUP -->
|
||||
if ({S_NEW_PM})
|
||||
{
|
||||
window.open('{UA_POPUP_PM}', '_phpbbprivmsg', 'height=225,resizable=yes,width=400');
|
||||
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
|
||||
}
|
||||
<!-- ENDIF -->
|
||||
|
||||
/**
|
||||
* Find a member
|
||||
*/
|
||||
function find_username()
|
||||
function find_username(url)
|
||||
{
|
||||
<!-- IF UA_FIND_USERNAME -->
|
||||
window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=500, resizable=yes, scrollbars=yes, width=740');
|
||||
<!-- ENDIF -->
|
||||
popup(url, 760, 570, '_usersearch');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
var form_name = 'postform';
|
||||
var text_name = <!-- IF $SIG_EDIT -->'signature'<!-- ELSE -->'message'<!-- ENDIF -->;
|
||||
var load_draft = false;
|
||||
@@ -38,7 +38,7 @@
|
||||
{
|
||||
if (!upload)
|
||||
{
|
||||
alert('{L_EMPTY_MESSAGE}');
|
||||
alert('{LA_EMPTY_MESSAGE}');
|
||||
return false;
|
||||
}
|
||||
upload = false;
|
||||
@@ -54,7 +54,7 @@
|
||||
var show_panel = 'options-panel';
|
||||
|
||||
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<dt><label>{L_FONT_COLOR}:</label></dt>
|
||||
<dd>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
function change_palette()
|
||||
{
|
||||
dE('colour_palette');
|
||||
@@ -81,7 +81,7 @@
|
||||
}
|
||||
|
||||
colorPalette('h', 15, 10);
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@@ -31,13 +31,13 @@
|
||||
<!-- ENDIF -->
|
||||
<dl class="pmlist">
|
||||
<dt><textarea id="username_list" name="username_list" class="inputbox"></textarea></dt>
|
||||
<dd><span><a href="{U_FIND_USERNAME}" onclick="find_username(); return false">{L_FIND_USERNAME}</a></span></dd>
|
||||
<dd><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span></dd>
|
||||
<dd><input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
|
||||
<dd><input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button2" /></dd>
|
||||
</dl>
|
||||
<!-- ELSE -->
|
||||
<dl>
|
||||
<dt><label for="username_list">{L_TO}:</label><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(); return false">{L_FIND_USERNAME}</a></span></dt>
|
||||
<dt><label for="username_list">{L_TO}:</label><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span></dt>
|
||||
<!-- IF .to_recipient -->
|
||||
<dd>
|
||||
<!-- BEGIN to_recipient -->
|
||||
@@ -114,7 +114,7 @@
|
||||
<!-- END smiley -->
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
|
||||
<br /><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=350,resizable=yes,scrollbars=yes,WIDTH=300'); return false;">{L_MORE_SMILIES}</a>
|
||||
<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF BBCODE_STATUS -->
|
||||
|
@@ -81,9 +81,9 @@
|
||||
</form>
|
||||
<!-- IF not S_PRIVMSGS -->
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
subPanels(show_panel);
|
||||
-->
|
||||
// ]]>
|
||||
</script>
|
||||
<!-- ENDIF -->
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
<!-- INCLUDE simple_header.html -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
var form_name = 'postform';
|
||||
var text_name = 'message';
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
|
||||
<h3 id="review">
|
||||
<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{L_EXPAND_VIEW}'){rev_text.data = '{L_COLLAPSE_VIEW}'; } else if (rev_text.data == '{L_COLLAPSE_VIEW}'){rev_text.data = '{L_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span>
|
||||
<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span>
|
||||
{L_TOPIC_REVIEW}: {TOPIC_TITLE}
|
||||
</h3>
|
||||
|
||||
|
@@ -12,19 +12,6 @@
|
||||
<!-- IF S_EDIT -->
|
||||
<h3>{L_GROUP_DETAILS}</h3>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
/**
|
||||
* Colour swatch
|
||||
*/
|
||||
function swatch()
|
||||
{
|
||||
window.open('{UA_SWATCH}', '_swatch', 'height=150, resizable=yes, scrollbars=no, width=636');
|
||||
return false;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<!-- IF S_ERROR -->
|
||||
<div class="errorbox">
|
||||
<h3>{L_WARNING}</h3>
|
||||
@@ -68,7 +55,7 @@
|
||||
<fieldset>
|
||||
<dl>
|
||||
<dt><label for="group_colour">{L_GROUP_COLOR}:</label><br /><span>{L_GROUP_COLOR_EXPLAIN}</span></dt>
|
||||
<dd><input name="group_colour" type="text" id="group_colour" value="{GROUP_COLOUR}" size="7" maxlength="7" class="inputbox narrow" /> <span style="background-color: {GROUP_COLOUR};"> </span> [ <a href="#" onclick="swatch(); return false">{L_COLOUR_SWATCH}</a> ]</dd>
|
||||
<dd><input name="group_colour" type="text" id="group_colour" value="{GROUP_COLOUR}" size="7" maxlength="7" class="inputbox narrow" /> <span style="background-color: {GROUP_COLOUR};"> </span> [ <a href="{U_SWATCH}" onclick="popup(this.href, 636, 150, '_swatch'); return false;">{L_COLOUR_SWATCH}</a> ]</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="group_rank">{L_GROUP_RANK}:</label></dt>
|
||||
@@ -191,7 +178,7 @@
|
||||
<dl>
|
||||
<dt><label for="usernames">{L_USERNAME}:</label><br /><span>{L_USERNAMES_EXPLAIN}</span></dt>
|
||||
<dd><textarea name="usernames" id="usernames" rows="3" cols="30" class="inputbox"></textarea></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
|
||||
<h3 id="review">
|
||||
<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{L_EXPAND_VIEW}'){rev_text.data = '{L_COLLAPSE_VIEW}'; } else if (rev_text.data == '{L_COLLAPSE_VIEW}'){rev_text.data = '{L_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span>
|
||||
<span class="right-box"><a href="#review" onclick="viewableArea(getElementById('topicreview'), true); var rev_text = getElementById('review').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'};">{L_EXPAND_VIEW}</a></span>
|
||||
{L_MESSAGE_HISTORY}: {HISTORY_TITLE}
|
||||
</h3>
|
||||
|
||||
|
@@ -49,7 +49,7 @@
|
||||
<!-- IF S_TEXT_CONDITION -->
|
||||
<input type="text" name="rule_string" value="{CURRENT_STRING}" class="inputbox medium" maxlength="250" />
|
||||
<!-- ELSEIF S_USER_CONDITION -->
|
||||
<input type="text" name="rule_string" value="{CURRENT_STRING}" class="inputbox tiny" /> <span>[ <a href="{U_FIND_USERNAME}" onclick="find_username(); return false;">{L_FIND_USERNAME}</a> ]</span>
|
||||
<input type="text" name="rule_string" value="{CURRENT_STRING}" class="inputbox tiny" /> <span>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</span>
|
||||
<!-- ELSEIF S_GROUP_CONDITION -->
|
||||
<input type="hidden" name="rule_string" value="{CURRENT_STRING}" /><!-- IF S_GROUP_OPTIONS --><select name="rule_group_id">{S_GROUP_OPTIONS}</select><!-- ELSE -->{L_NO_GROUPS}<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
@@ -1,16 +1,16 @@
|
||||
<!-- INCLUDE simple_header.html -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
/**
|
||||
* Jump to inbox
|
||||
*/
|
||||
function jump_to_inbox()
|
||||
function jump_to_inbox(url)
|
||||
{
|
||||
opener.document.location.href = "{UA_RETURN_INBOX}";
|
||||
opener.document.location.href = url.replace(/&/g, '&');
|
||||
window.close();
|
||||
}
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<div class="panel">
|
||||
|
@@ -81,7 +81,7 @@
|
||||
<!-- IF U_ICQ --><li class="icq-icon"><a href="{U_ICQ}" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_YIM --><li class="yahoo-icon"><a href="{U_YIM}" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_AIM --><li class="aim-icon"><a href="{U_AIM}" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_JABBER --><li class="jabber-icon"><a href="{U_JABBER}" onclick="popup('{U_JABBER}', 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_JABBER --><li class="jabber-icon"><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||
</ul>
|
||||
</dd>
|
||||
<!-- ENDIF -->
|
||||
|
@@ -87,7 +87,7 @@
|
||||
<dl>
|
||||
<dt><label for="dateformat">{L_BOARD_DATE_FORMAT}:</label><br /><span>{L_BOARD_DATE_FORMAT_EXPLAIN}</span></dt>
|
||||
<dd>
|
||||
<select name="dateoptions" id="dateoptions" onchange="if(this.value=='custom'){dE('custom_date',1);}else{dE('custom_date',-1);} if (this.value == 'custom') { document.getElementById('dateformat').value = '{A_DEFAULT_DATEFORMAT}'; } else { document.getElementById('dateformat').value = this.value; }">
|
||||
<select name="dateoptions" id="dateoptions" onchange="if(this.value=='custom'){dE('custom_date',1);}else{dE('custom_date',-1);} if (this.value == 'custom') { document.getElementById('dateformat').value = default_dateformat; } else { document.getElementById('dateformat').value = this.value; }">
|
||||
{S_DATEFORMAT_OPTIONS}
|
||||
</select>
|
||||
</dd>
|
||||
@@ -106,8 +106,9 @@
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
var date_format = '{A_DATE_FORMAT}';
|
||||
var default_dateformat = '{A_DEFAULT_DATEFORMAT}';
|
||||
|
||||
function customDates()
|
||||
{
|
||||
@@ -137,7 +138,7 @@
|
||||
}
|
||||
|
||||
customDates();
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<!-- INCLUDE ucp_footer.html -->
|
@@ -1,7 +1,7 @@
|
||||
<!-- INCLUDE overall_header.html -->
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// <![CDATA[
|
||||
/**
|
||||
* Change language
|
||||
*/
|
||||
@@ -10,7 +10,7 @@
|
||||
document.forms['register'].change_lang.value = lang_iso;
|
||||
document.forms['register'].submit.click();
|
||||
}
|
||||
//-->
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<form method="post" action="{S_UCP_ACTION}" id="register">
|
||||
|
@@ -24,7 +24,7 @@
|
||||
<dl>
|
||||
<dt><label for="add">{L_ADD_FOES}:</label><br /><span>{L_ADD_FOES_EXPLAIN}</span></dt>
|
||||
<dd><textarea name="add" id="add" rows="3" cols="30" class="inputbox">{USERNAMES}</textarea></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
<dl>
|
||||
<dt><label for="add">{L_ADD_FRIENDS}:</label><br /><span>{L_ADD_FRIENDS_EXPLAIN}</span></dt>
|
||||
<dd><textarea name="add" id="add" rows="3" cols="30" class="inputbox">{USERNAMES}</textarea></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
|
@@ -47,7 +47,7 @@
|
||||
<div class="search-box">
|
||||
<form method="post" id="forum-search" action="{S_SEARCHBOX_ACTION}">
|
||||
<fieldset>
|
||||
<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="20" value="{L_SEARCH_FORUM}" onclick="if (this.value == '{L_SEARCH_FORUM}') this.value = '';" onblur="if (this.value == '') this.value = '{L_SEARCH_FORUM}';" />
|
||||
<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="20" value="{L_SEARCH_FORUM}" onclick="if (this.value == '{LA_SEARCH_FORUM}') this.value = '';" onblur="if (this.value == '') this.value = '{LA_SEARCH_FORUM}';" />
|
||||
<input class="button2" type="submit" value="{L_SEARCH}" />
|
||||
<input type="hidden" value="{FORUM_ID}" name="fid[]" />
|
||||
</fieldset>
|
||||
|
@@ -40,7 +40,7 @@
|
||||
<div class="search-box">
|
||||
<form method="post" id="topic-search" action="{S_SEARCHBOX_ACTION}">
|
||||
<fieldset>
|
||||
<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="20" value="{L_SEARCH_TOPIC}" onclick="if(this.value=='{L_SEARCH_TOPIC}')this.value='';" onblur="if(this.value=='')this.value='{L_SEARCH_TOPIC}';" />
|
||||
<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="20" value="{L_SEARCH_TOPIC}" onclick="if(this.value=='{LA_SEARCH_TOPIC}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_TOPIC}';" />
|
||||
<input class="button2" type="submit" value="{L_SEARCH}" />
|
||||
<input type="hidden" value="{TOPIC_ID}" name="t" />
|
||||
<input type="hidden" value="msgonly" name="sf" />
|
||||
@@ -205,7 +205,7 @@
|
||||
<!-- IF postrow.U_ICQ --><li class="icq-icon"><a href="{postrow.U_ICQ}" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_YIM --><li class="yahoo-icon"><a href="{postrow.U_YIM}" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_AIM --><li class="aim-icon"><a href="{postrow.U_AIM}" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup('{postrow.U_JABBER}', 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||
</ul>
|
||||
</dd>
|
||||
<!-- ENDIF -->
|
||||
|
Reference in New Issue
Block a user