本文整理汇总了PHP中border函数的典型用法代码示例。如果您正苦于以下问题:PHP border函数的具体用法?PHP border怎么用?PHP border使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了border函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createTables
function createTables()
{
global $wowdb, $roster_conf, $db_prefix;
// Declare tables needed for EventCalendar
$create_events = "CREATE TABLE `" . $db_prefix . "events` (\n\t\t`eventid` int(6) NOT NULL AUTO_INCREMENT,\n\t\t`date` datetime NOT NULL default '0000-00-00 00:00:00',\n\t\t`title` varchar(100) NOT NULL default '',\n\t\t`type` varchar(100) NOT NULL default '',\n\t\t`note` varchar(255) NOT NULL default '',\n\t\t`leader` varchar(100) NOT NULL default '',\t\t\n\t\t`minLevel` int(11) NOT NULL default '0',\n\t\t`maxLevel` int(11) NOT NULL default '0',\n\t\t`maxCount` int(11) NOT NULL default '0',\n\t\tKEY `eventid` (`eventid`)\n\t\t) TYPE=MyISAM;";
$create_eventmembers = "CREATE TABLE `" . $db_prefix . "event_members` (\n\t\t`name` varchar(100) NOT NULL default '',\n\t\t`guild` varchar(255) NOT NULL default '',\n\t\t`class` varchar(100) NOT NULL default '',\n\t\t`level` int(11) NOT NULL default '0',\n\t\tUNIQUE KEY `name` (`name`)\n\t\t) TYPE=MyISAM;";
$create_eventsubscribers = "CREATE TABLE `" . $db_prefix . "event_subscribers` (\n\t\t`eventid` int(11) NOT NULL default '0',\n\t\t`name` varchar(100) NOT NULL default '',\n\t\t`place` varchar(10) NOT NULL default '',\n\t\t`status` varchar(100) NOT NULL default '',\n\t\t`note` varchar(255) NOT NULL default '',\n\t\tKEY `eventid` (`eventid`),\n\t\tKEY `name` (`name`)\n\t\t) TYPE=MyISAM;";
$create_eventlimits = "CREATE TABLE `" . $db_prefix . "event_limits` (\n\t\t`eventid` int(11) NOT NULL default '0',\n\t\t`class` varchar(100) NOT NULL default '',\n\t\t`min` int(11) NOT NULL default '0',\n\t\t`max` int(11) NOT NULL default '0',\n\t\tKEY `eventid` (`eventid`)\n\t\t) TYPE=MyISAM;";
// Create tables declared above
$tables = 0;
if ($wowdb->query($create_events) or die_quietly($wowdb->error(), 'Database Error', basename(__FILE__), __LINE__, $create_events)) {
$tables += 1;
}
if ($wowdb->query($create_eventmembers) or die_quietly($wowdb->error(), 'Database Error', basename(__FILE__), __LINE__, $create_eventmembers)) {
$tables += 1;
}
if ($wowdb->query($create_eventsubscribers) or die_quietly($wowdb->error(), 'Database Error', basename(__FILE__), __LINE__, $create_raidmembers)) {
$tables += 1;
}
if ($wowdb->query($create_eventlimits) or die_quietly($wowdb->error(), 'Database Error', basename(__FILE__), __LINE__, $create_eventlimits)) {
$tables += 1;
}
if ($tables == 4) {
echo border('syellow', 'start');
echo '<table width="300px">';
echo '<tr><td align="center">All tables successfully added</td></tr>';
echo '<tr><td align="center"><a href="addon.php?roster_addon_name=EventCalendar">Finish installation</a></td></tr>';
echo '</table>';
echo border('syellow', 'end');
}
}
示例2: catcher
function catcher($errno, $errstr, $errfile, $errline, $errcontext)
{
border();
printf('%s:%d: %s%s', $errfile, $errline, $errstr, PHP_EOL);
//print_r($errcontext);
die($errno);
}
示例3: _eventList
function _eventList()
{
global $roster, $addon;
$events = $this->_getGuildEvents();
$roster->tpl->assign_vars(array('START_BORDER' => border('syellow', 'start'), 'STOP_BORDER' => border('syellow', 'end'), 'FORMLINK' => makelink()));
foreach ($events as $event) {
$roster->tpl->assign_block_vars('body_row', array('EVENTID' => $event->id, 'EVENTNAME' => $event->eventName, 'DDS' => $event->damageDealtSum, 'HDS' => $event->healingDoneSum, 'DTS' => $event->damageTakenSum, 'HTS' => $event->healingTakenSum, 'DRUIDICON' => $roster->config['img_url'] . 'class/druid_icon.jpg', 'HUNTERICON' => $roster->config['img_url'] . 'class/hunter_icon.jpg', 'MAGEICON' => $roster->config['img_url'] . 'class/mage_icon.jpg', 'PALADINICON' => $roster->config['img_url'] . 'class/paladin_icon.jpg', 'PRIESTICON' => $roster->config['img_url'] . 'class/priest_icon.jpg', 'ROGUEICON' => $roster->config['img_url'] . 'class/rogue_icon.jpg', 'SHAMANICON' => $roster->config['img_url'] . 'class/shaman_icon.jpg', 'WARLOCKICON' => $roster->config['img_url'] . 'class/warlock_icon.jpg', 'WARRIORICON' => $roster->config['img_url'] . 'class/warrior_icon.jpg', 'DRUIDCOUNT' => isset($event->memberClasses['DRUID']) ? $event->memberClasses['DRUID'] : 0, 'HUNTERCOUNT' => isset($event->memberClasses['HUNTER']) ? $event->memberClasses['HUNTER'] : 0, 'MAGECOUNT' => isset($event->memberClasses['MAGE']) ? $event->memberClasses['MAGE'] : 0, 'PALADINCOUNT' => isset($event->memberClasses['PALADIN']) ? $event->memberClasses['PALADIN'] : 0, 'PRIESTCOUNT' => isset($event->memberClasses['PRIEST']) ? $event->memberClasses['PRIEST'] : 0, 'ROGUECOUNT' => isset($event->memberClasses['ROGUE']) ? $event->memberClasses['ROGUE'] : 0, 'SHAMANCOUNT' => isset($event->memberClasses['SHAMAN']) ? $event->memberClasses['SHAMAN'] : 0, 'WARLOCKCOUNT' => isset($event->memberClasses['WARLOCK']) ? $event->memberClasses['WARLOCK'] : 0, 'WARRIORCOUNT' => isset($event->memberClasses['WARRIOR']) ? $event->memberClasses['WARRIOR'] : 0));
}
$roster->tpl->set_filenames(array('eventListBody' => $addon['basename'] . '/assessment.view.eventlist.body.html'));
$roster->tpl->display('eventListBody');
}
示例4: recruitment
function recruitment()
{
global $roster, $addon, $user;
if ($addon['config']['acc_use_recruit'] == 1) {
$roster->tpl->assign_block_vars('user_recruitment', array('BORDER_START' => border('sred', 'start', $roster->locale->act['user_page']['recruitment']), 'RECRUIT_TXT' => $roster->locale->act['user_int']['rec_txt'], 'STATUS' => ucfirst($addon['config']['acc_rec_status']), 'DRUID' => ucfirst($addon['config']['acc_rec_druid']), 'DRUID_TXT' => $roster->locale->act['Druid'], 'HUNTER' => ucfirst($addon['config']['acc_rec_hunter']), 'HUNTER_TXT' => $roster->locale->act['Hunter'], 'MAGE' => ucfirst($addon['config']['acc_rec_mage']), 'MAGE_TXT' => $roster->locale->act['Mage'], 'PALADIN' => ucfirst($addon['config']['acc_rec_paladin']), 'PALADIN_TXT' => $roster->locale->act['Paladin'], 'PRIEST' => ucfirst($addon['config']['acc_rec_priest']), 'PRIEST_TXT' => $roster->locale->act['Priest'], 'ROGUE' => ucfirst($addon['config']['acc_rec_rouge']), 'ROGUE_TXT' => $roster->locale->act['Rogue'], 'SHAMAN' => ucfirst($addon['config']['acc_rec_shaman']), 'SHAMAN_TXT' => $roster->locale->act['Shaman'], 'WARLOCK' => ucfirst($addon['config']['acc_rec_warlock']), 'WARLOCK_TXT' => $roster->locale->act['Warlock'], 'WARRIOR' => ucfirst($addon['config']['acc_rec_warrior']), 'WARRIOR_TXT' => $roster->locale->act['Warrior'], 'BORDER_END' => border('sred', 'end'), 'MESSAGE' => isset($error) ? $error : " "));
$roster->tpl->set_filenames(array('user_recruitment' => $addon['basename'] . '/recruitment.html'));
$roster->tpl->display('user_recruitment');
return;
} else {
return;
}
}
示例5: border
}
//end while
?>
<tr>
<td class="membersRow2" style="text-align:center;"> </td>
<td class="membersRow2"><input class="wowinput64" type="text" name="id" value="" MAXLENGTH="5"/></td>
<td class="membersRow2"><input class="wowinput64" type="text" name="id_display" value="" MAXLENGTH="10"/></td>
<td class="membersRow2"><input class="wowinput128" type="text" name="instance_name" value="" MAXLENGTH="50"/></td>
<td class="membersRow2"><input class="wowinput128" type="text" name="key_name" value="" MAXLENGTH="50"/></td>
<td class="membersRow2">
<select name="Type">
<option>Key-Only</option>
<option>Quests</option>
<option>Reputation</option>
</select>
</td>
<td class="membersRow2"><?php
echo $max + 1;
?>
</td>
<td class="membersRowRight2"><button type="submit" class="input" onclick="setvalue('action','add');"><?php
echo $roster->locale->act['add'];
?>
</button></td>
</tr>
</tbody>
</table>
<?php
echo '<input type="hidden" id="order" name="order" value="' . ($max + 1) . '" />';
echo border('sgreen', 'end');
示例6: catcher
function catcher($errno, $errstr, $errfile, $errline, $errcontext)
{
border();
writefln('%s:%d:[%d] %s', $errfile, $errline, $errno, $errstr);
//print_r($errcontext);
if ($errno !== E_DEPRECATED) {
die($errno);
}
}
示例7: _showFooter
function _showFooter()
{
global $roster, $addon;
////aprint($this->debugmessages[0]['ret']);
$roster->tpl->assign_vars(array('IMAGE_PATH' => $addon['image_path'], 'ARMORYSYNC_VERSION' => $addon['version'] . ' by Ulminia', 'ARMORYSYNC_CREDITS' => $roster->locale->act['armorysync_credits'], 'ERROR' => count($this->errormessages) > 0, 'DEBUG' => $addon['config']['armorysync_debuglevel'], 'DEBUG_DATA' => $addon['config']['armorysync_debugdata'], 'D_START_BORDER' => border('sblue', 'start', 'ArmorySync Debugging ' . ($addon['config']['armorysync_debugdata'] ? 'Infos & Data' : 'Infos'), '100%'), 'E_START_BORDER' => border('sred', 'start', 'ArmorySync Error ' . ($addon['config']['armorysync_debugdata'] ? 'Infos & Data' : 'Infos'), '100%'), 'RUNTIME' => round(format_microtime() - ARMORYSYNC_STARTTIME, 4), 'S_SQL_WIN' => $addon['config']['armorysync_sqldebug']));
$this->_debug(3, null, 'Printed footer', 'OK');
if ($roster->switch_row_class(false) != 1) {
$roster->switch_row_class();
}
foreach ($this->errormessages as $message) {
$roster->tpl->assign_block_vars('e_row', array('FILE' => $message['file'], 'LINE' => $message['line'], 'TIME' => $message['time'], 'CLASS' => $message['class'], 'FUNC' => $message['function'], 'INFO' => $message['info'], 'STATUS' => $message['status'], 'ARGS' => aprint($message['args'], '', 1), 'RET' => aprint($message['ret'], '', 1), 'ROW_CLASS1' => $addon['config']['armorysync_debugdata'] ? 1 : $roster->switch_row_class(), 'ROW_CLASS2' => 1, 'ROW_CLASS3' => 1));
}
$roster->tpl->assign_var('E_STOP_BORDER', border('sred', 'end', '', ''));
if ($roster->switch_row_class(false) != 1) {
$roster->switch_row_class();
}
foreach ($this->debugmessages as $message) {
$roster->tpl->assign_block_vars('d_row', array('FILE' => $message['file'], 'LINE' => $message['line'], 'TIME' => $message['time'], 'CLASS' => $message['class'], 'FUNC' => $message['function'], 'INFO' => $message['info'], 'STATUS' => $message['status'], 'ARGS' => aprint($message['args'], '', 1), 'RET' => aprint($message['ret'], '', 1), 'ROW_CLASS1' => $addon['config']['armorysync_debugdata'] ? 1 : $roster->switch_row_class(), 'ROW_CLASS2' => 1, 'ROW_CLASS3' => 1));
}
$roster->tpl->assign_var('D_STOP_BORDER', border('sblue', 'end', '', ''));
if ($addon['config']['armorysync_sqldebug']) {
if (count($roster->db->queries) > 0) {
foreach ($roster->db->queries as $file => $queries) {
if (!preg_match('#[\\\\/]{1}addons[\\\\/]{1}armorysync[\\\\/]{1}inc[\\\\/]{1}[a-z_.]+.php$#', $file)) {
continue;
}
$roster->tpl->assign_block_vars('sql_debug', array('FILE' => substr($file, strlen(ROSTER_BASE))));
foreach ($queries as $query) {
$roster->tpl->assign_block_vars('sql_debug.row', array('ROW_CLASS' => $roster->switch_row_class(), 'LINE' => $query['line'], 'TIME' => $query['time'], 'QUERY' => nl2br(htmlentities($query['query']))));
}
}
$roster->tpl->assign_vars(array('SQL_DEBUG_B_S' => border('sgreen', 'start', $roster->locale->act['sql_queries']), 'SQL_DEBUG_B_E' => border('sgreen', 'end')));
}
}
$roster->tpl->set_filenames(array('footer' => $addon['basename'] . '/footer.html'));
$roster->tpl->display('footer');
}
示例8: border
}
echo "\n\n\n";
if ($q == 3) {
echo '</tr>';
$q = '0';
}
if ($h == $ipp) {
$g = 1;
$pag++;
$h = 0;
echo '</table></div>';
}
}
echo '</tr>';
echo '</table></div></table>';
print border($addon['config']['rg_mp_bc'], 'end');
print '<br />';
if ($addon['config']['rg_dul'] == 0) {
$uploadwin = '
<form method="post" action="' . makelink() . '" enctype="multipart/form-data" onsubmit="submitonce(this)">
<table width="198" class="ss_table" cellspacing="0" cellpadding="2">
<tr>
<td class="ss_row_right1" align="left">' . $roster->locale->act['imgloc'] . ':<br />
<input class="inputbox" name="userfile" type="file" /></td>
</tr>
<tr>
<td class="ss_row_right1" align="left">' . $roster->locale->act['capt'] . ':<br />
<input class="inputbox" name="caption" type="text" size="40" /></td>
</tr>
<tr>
<td class="ss_row_right1" align="left">' . $roster->locale->act['desc'] . ':<br />
示例9: generateHsList
}
if ($addon['config']['honor_motd'] == 1) {
$menu .= $memberlist->makeMotd();
}
$roster->output['before_menu'] .= $menu;
if ($addon['config']['honor_hslist'] == 1 || $addon['config']['honor_pvplist'] == 1) {
echo "<table>\n <tr>\n";
if ($addon['config']['honor_hslist'] == 1) {
echo ' <td valign="top">';
include_once ROSTER_LIB . 'hslist.php';
echo generateHsList();
echo " </td>\n";
}
if (active_addon('pvplog') && $addon['config']['honor_pvplist'] == 1) {
echo ' <td valign="top">';
include_once ROSTER_ADDONS . 'pvplog' . DIR_SEP . 'inc' . DIR_SEP . 'pvplist.php';
echo generatePvpList();
echo " </td>\n";
}
echo " </tr>\n</table>\n";
}
$memberlist->makeFilterBox();
$memberlist->makeToolBar('horizontal');
echo $memberlist->makeMembersList('syellow');
// Print the update instructions
if ($addon['config']['honor_update_inst']) {
echo "<br />\n\n<a name=\"update\"></a>\n";
echo border('sgray', 'start', $roster->locale->act['update_instructions']);
echo '<div align="left" style="font-size:10px;background-color:#1F1E1D;">' . sprintf($roster->locale->act['update_instruct'], $roster->config['uploadapp'], $roster->locale->act['index_text_uniloader'], $roster->config['profiler'], makelink('update'), $roster->locale->act['lualocation']);
echo '</div>' . border('sgray', 'end');
}
示例10: foreach
$k = 0;
foreach ($data as $val_name => $value) {
if (substr($val_name, 0, 5) != 'show_') {
continue;
}
$formbody .= ' <td class="membersRow' . ($i % 2 + 1) . '">' . "\n";
$formbody .= ' <input type="radio" id="chard_f' . $k . '_' . $data['member_id'] . '" name="disp_' . $data['member_id'] . ':' . $val_name . '" value="1" ' . ($value == '1' ? 'checked="checked"' : '') . ' /><label for="chard_f' . $k . '_' . $data['member_id'] . '">Off</label><br />' . "\n";
$formbody .= ' <input type="radio" id="chard_n' . $k . '_' . $data['member_id'] . '" name="disp_' . $data['member_id'] . ':' . $val_name . '" value="3" ' . ($value == '3' ? 'checked="checked"' : '') . ' /><label for="chard_n' . $k . '_' . $data['member_id'] . '">On</label><br />' . "\n";
$formbody .= ' <input type="radio" id="chard_g' . $k . '_' . $data['member_id'] . '" name="disp_' . $data['member_id'] . ':' . $val_name . '" value="0" ' . ($value == '0' ? 'checked="checked"' : '') . ' /><label for="chard_g' . $k . '_' . $data['member_id'] . '">Global</label>' . "\n";
$formbody .= "\t\t\t</td>\n";
$k++;
}
$formbody .= "\t</tr>\n";
$i++;
}
$formbody .= "</table>\n" . border('syellow', 'end') . "\n</div>\n";
$formbody .= $prev . $listing . $next;
} else {
$formbody = 'No Data';
}
$roster->output['body_onload'] .= 'initARC(\'config\',\'radioOn\',\'radioOff\',\'checkboxOn\',\'checkboxOff\');';
$body = "\n<form action=\"\" method=\"post\" enctype=\"multipart/form-data\" id=\"config\" onsubmit=\"return confirm('" . $roster->locale->act['confirm_config_submit'] . "');submitonce(this);\">\n\t{$formbody}\n<br /><br />\n<input type=\"submit\" value=\"" . $roster->locale->act['config_submit_button'] . "\" />\n<input type=\"reset\" name=\"Reset\" value=\"" . $roster->locale->act['config_reset_button'] . "\" onclick=\"return confirm('" . $roster->locale->act['confirm_config_reset'] . "')\"/>\n<input type=\"hidden\" name=\"process\" value=\"process\" />\n\n</form>";
$tab1 = explode('|', $roster->locale->act['acc_settings']['set']);
$tab2 = explode('|', $roster->locale->act['acc_settings']['prof']);
$menu = messagebox('
<ul class="tab_menu">
<li class="selected"><a href="' . makelink('util-accounts-settings') . '" style="cursor:help;"' . makeOverlib($tab1[1], $tab1[0], '', 1, '', ',WRAP') . '>' . $tab1[0] . '</a></li>
<li><a href="' . makelink('util-accounts-settings-profile') . '" style="cursor:help;"' . makeOverlib($tab2[1], $tab2[0], '', 1, '', ',WRAP') . '>' . $tab2[0] . '</a></li>
</ul>
', $roster->locale->act['acc_page']['settings'], 'sgray', '145px');
/**
示例11: isset
}
$stripe = $stripe % 2 + 1;
$output[$info]['basename'] = $mod;
$output[$info]['fullname'] = isset($roster->locale->act[$addonstuff->fullname]) ? $roster->locale->act[$addonstuff->fullname] : $addonstuff->fullname;
$output[$info]['author'] = $addonstuff->credits[0]['name'];
$output[$info]['version'] = $addonstuff->version;
$output[$info]['icon'] = $addonstuff->icon;
$output[$info]['description'] = isset($roster->locale->act[$addonstuff->description]) ? $roster->locale->act[$addonstuff->description] : $addonstuff->description;
echo '-<br>';
$body .= '<tr><td class="membersRow' . $stripe . '" ><img src ="' . $roster->config['interface_url'] . 'Interface/Icons/' . strtolower($output[$info]['icon']) . '.' . $imgext . '" align="middle" /></a></td>';
$body .= '<td class="membersRow' . $stripe . '">' . $output[$info]['fullname'] . ' - ' . $output[$info]['version'] . '<br>' . $output[$info]['author'] . '</td>';
if (!$previous) {
$body .= '<td class="membersRow' . $stripe . '"><a href="' . makelink('&cfg=mod&installmd=' . $mod) . '">Install</a></td></tr>';
}
$vs = version_compare($output[$info]['version'], $previous['mod_version']);
echo $vs . '<br>';
if ($vs == '1' && $previous['mod_version'] != '') {
$body .= '<td class="membersRow' . $stripe . '"><a href="' . makelink('&cfg=mod&upgrademd=' . $mod) . '">Upgrade to ' . $output[$info]['version'] . '</a></td></tr>';
}
if ($previous['mod_version'] == $output[$info]['version'] && $vs != '1') {
$body .= '<td class="membersRow' . $stripe . '"><a href="' . makelink('&cfg=mod&uninstallmd=' . $mod) . '">unInstall</a></td></tr>';
}
unset($addonstuff);
// Restore our locale array
$roster->locale->wordings = $localetemp;
unset($localetemp);
}
}
}
$body .= '</table>' . border('spurple', 'end', '');
示例12: buildConfigPage
/**
* Build the config page body
*
* @return string $html | HTML code for main page body.
*/
function buildConfigPage()
{
global $wordings, $roster_conf;
// Build the page
$html = '';
foreach ($this->conf_arrays as $type) {
$i = 0;
$html .= "<div id=\"{$type}\" style=\"display:none;\">\n" . border('sblue', 'start', $wordings[$roster_conf['roster_lang']]['admin'][$type]) . "\n<table cellspacing=\"0\" cellpadding=\"0\" class=\"bodyline\">\n";
foreach ($this->db_values[$type] as $values) {
// Here is my nifty auto form generator
// Takes `form_type` from the db and parses it for form type values and labels
// Any un-handled form type will cause this file to just display the current value
// Figure out input type
$input_field = '';
$input_type = explode('{', $values['form_type']);
switch ($input_type[0]) {
case 'text':
$length = explode('|', $input_type[1]);
$input_field = '<input name="config_' . $values['name'] . '" type="text" value="' . $values['value'] . '" size="' . $length[1] . '" maxlength="' . $length[0] . '" />';
break;
case 'radio':
$options = explode('|', $input_type[1]);
foreach ($options as $value) {
$vals = explode('^', $value);
$input_field .= '<label class="' . ($values['value'] == $vals[1] ? 'blue' : 'white') . '"><input class="checkBox" type="radio" name="config_' . $values['name'] . '" value="' . $vals[1] . '" ' . ($values['value'] == $vals[1] ? 'checked="checked"' : '') . ' />' . $vals[0] . "</label>\n";
}
break;
case 'select':
$options = explode('|', $input_type[1]);
$input_field .= '<select name="config_' . $values['name'] . '">' . "\n";
$select_one = 1;
foreach ($options as $value) {
$vals = explode('^', $value);
if ($values['value'] == $vals[1] && $select_one) {
$input_field .= ' <option value="' . $vals[1] . '" selected="selected">>' . $vals[0] . '<</option>' . "\n";
$select_one = 0;
} else {
$input_field .= ' <option value="' . $vals[1] . '">' . $vals[0] . '</option>' . "\n";
}
}
$input_field .= '</select>';
break;
case 'function':
$input_field = $input_type[1]();
break;
case 'display':
$input_field = $values['value'];
break;
default:
$input_field = $values['value'];
break;
}
$html .= '
<tr>
<td class="membersRow' . ($i % 2 + 1) . '">' . $this->createTip($values['description'], $values['tooltip'], $values['description']) . '</td>
<td class="membersRowRight' . ($i % 2 + 1) . '"><div align="right">' . $input_field . '</div></td>
</tr>';
$i++;
}
$html .= "</table>\n" . border('sblue', 'end') . "\n</div>\n";
}
return $html;
}
示例13: _showStatus
/**
* statusbox output with templates
*
* @param int $jobid
*/
function _showStatus($jobid = 0, $memberlist = false)
{
global $roster, $addon;
$jscript = "<script type=\"text/javascript\" src=\"" . $addon['url_path'] . "js/rsync.js\"></script>\n";
$jscript .= '
<script type="text/javascript">
var rsync_debuglevel = ' . $addon['config']['rsync_debuglevel'] . ';
var rsync_debugdata = ' . $addon['config']['rsync_debugdata'] . ';
</script>
';
//function rsync_debuglevel() { return '. $addon['config']['rsync_debuglevel']. '; }
//function rsync_debugdata() { return '. $addon['config']['rsync_debugdata']. '; }
$this->header .= $jscript;
$members = $this->members;
$status = isset($_POST['StatusHidden']) ? $_POST['StatusHidden'] : ($addon['config']['rsync_status_hide'] ? 'ON' : 'OFF');
$display = $status == 'ON' ? 'none' : '';
$icon = ROSTER_PATH . ($status == 'ON' ? $roster->config['theme_path'] . '/images/plus.gif' : $roster->config['theme_path'] . '/images/minus.gif');
$style = 'syellow';
$roster->tpl->assign_vars(array('IMAGE_PATH' => $addon['image_path'], 'USE_EFFECTS' => null, 'LINK' => $this->link ? $this->link : makelink(), 'DEBUG' => $addon['config']['rsync_xdebug_php'] ? "<input type=\"hidden\" name=\"XDEBUG_SESSION_START\" value=\"" . $addon['config']['rsync_xdebug_idekey'] . "\" />" : "", 'STATUSHIDDEN' => $status, 'JOB_ID' => $this->jobid, 'MEMBERSLIST' => $this->is_listupdate, 'DISPLAY' => $display, 'ICON' => $icon, 'START_BORDER' => border($style, 'start', '', '848px'), 'STYLE' => $style, 'TITLE' => $this->title, 'PROGRESSBAR' => $this->_getProgressBar($this->done, $this->total)));
if (isset($this->active_member['name']) || isset($this->active_member['guild_name'])) {
$roster->tpl->assign_var('NEXT', $roster->locale->act['next_to_update'] . ($memberlist ? $this->active_member['guild_name'] : $this->active_member['name']));
} else {
$roster->tpl->assign_var('NEXT', false);
}
if (!$memberlist) {
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['name'], 'HEAD_WIDTH' => '120px'));
}
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['guild'] . " " . $roster->locale->act['name'], 'HEAD_WIDTH' => '140px'));
if ($memberlist) {
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['guild_short'] . "Info", 'HEAD_WIDTH' => '64px'));
}
if (!$memberlist) {
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['character_short'], 'HEAD_WIDTH' => '55px'));
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['skill_short'], 'HEAD_WIDTH' => '55px'));
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['reputation_short'], 'HEAD_WIDTH' => '55px'));
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['equipment_short'], 'HEAD_WIDTH' => '55px'));
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['talents_short'], 'HEAD_WIDTH' => '55px'));
}
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['started'], 'HEAD_WIDTH' => '110px'));
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => $roster->locale->act['finished'], 'HEAD_WIDTH' => '110px'));
$roster->tpl->assign_block_vars('head_col', array('HEAD_TITLE' => "Log", 'HEAD_WIDTH' => '30px'));
$l = 1;
$roster->tpl->assign_var('CHARLIST', !$memberlist);
$roster->tpl->assign_var('MEMBERLIST', $memberlist);
if ($this->is_listupdate == 1) {
//echo '<pre>';print_r($this->active_member);echo '</pre><br>';
$roster->tpl->assign_block_vars('body_rowx', array('LOG' => $this->log));
$roster->tpl->assign_block_vars('body_row', array('LINE_VALUE' => $roster->data['guild_name'], 'WIDTH' => '120px'));
$roster->tpl->assign_block_vars('body_row.line', array('LINE_VALUE' => isset($this->active_member['guild_info']) ? $this->active_member['guild_info'] : "<img src=\"" . ROSTER_PATH . "img/blue-question-mark.gif\" alt=\"?\"/>", 'WIDTH' => '90px'));
$roster->tpl->assign_block_vars('body_row.line', array('LINE_VALUE' => isset($this->active_member['starttimeutc']) ? $this->active_member['starttimeutc'] : "<img src=\"" . ROSTER_PATH . "img/blue-question-mark.gif\" alt=\"?\"/>", 'WIDTH' => '120px'));
$roster->tpl->assign_block_vars('body_row.line', array('LINE_VALUE' => isset($this->active_member['stoptimeutc']) ? $this->active_member['stoptimeutc'] : "<img src=\"" . ROSTER_PATH . "img/blue-question-mark.gif\" alt=\"?\"/>", 'WIDTH' => '120px'));
}
foreach ($members as $member) {
$array = array();
$array['COLOR'] = $roster->switch_row_class();
$array['ASID'] = $memberlist ? $member['guild_id'] : $member['member_id'];
$array['NAME'] = $member['name'];
$array['GUILD'] = $member['guild_name'];
$array['SERVER'] = $member['region'] . "-" . $member['server'];
foreach (array('guild_info', 'character_info', 'skill_info', 'reputation_info', 'equipment_info', 'talent_info') as $key) {
if ($memberlist && $key !== 'guild_info') {
continue;
}
if (isset($member[$key]) && $member[$key] == 1) {
$array[strtoupper($key)] = "<img style=\"float:center;\" src=\"" . ROSTER_PATH . "img/pvp-win.gif\" alt=\"\"/>";
//$array['FINISHED'] = '3';
} elseif (isset($member[$key]) && $member[$key] >= 1) {
$array[strtoupper($key)] = $member[$key];
} elseif (isset($member[$key])) {
$array[strtoupper($key)] = "<img style=\"float:center;\" src=\"" . ROSTER_PATH . "img/pvp-loss.gif\" alt=\"\" />";
} else {
$array[strtoupper($key)] = "<img style=\"float:center;\" src=\"" . ROSTER_PATH . "img/blue-question-mark.gif\" alt=\"?\" />";
}
}
$array['STARTTIMEUTC'] = isset($member['starttimeutc']) ? $this->_getLocalisedTime($member['starttimeutc']) : "<img src=\"" . ROSTER_PATH . "img/blue-question-mark.gif\" alt=\"?\"/>";
$array['STOPTIMEUTC'] = isset($member['stoptimeutc']) ? $this->_getLocalisedTime($member['stoptimeutc']) : "<img src=\"" . ROSTER_PATH . "img/blue-question-mark.gif\" alt=\"?\"/>";
$array['FINISHED'] = isset($member['stoptimeutc']) ? "3" : "4";
if (!$memberlist && $member['log']) {
$array['LOG'] = "<img src=\"" . $roster->config['theme_path'] . "/images/note.gif\"" . makeOverlib($member['log'], $roster->locale->act['update_log'], '', 0, '', ',WRAP') . " alt=\"\" />";
} elseif ($member['log']) {
$array['LOG'] = "<img src=\"" . $roster->config['theme_path'] . "/images/note.gif\"" . makeOverlib("<div style=\"height:300px;width:500px;overflow:auto;\">" . $member['log'] . " -+-</div>", $roster->locale->act['update_log'], '', 0, '', ',STICKY, WRAP, CLOSECLICK') . " alt=\"\" />";
} else {
$array['LOG'] = "<img src=\"" . $roster->config['theme_path'] . "/images/no_note.gif\" alt=\"\" />";
}
$roster->tpl->assign_block_vars('body_row', array('LINE_VALUE' => $array['NAME'], 'WIDTH' => '120px'));
$roster->tpl->assign_block_vars('body_row.line', array('LINE_VALUE' => $array['GUILD'], 'WIDTH' => '140px'));
if ($memberlist) {
$roster->tpl->assign_block_vars('body_row.line', array('LINE_VALUE' => $array['GUILD_INFO'], 'WIDTH' => '70px'));
}
if ($this->is_listupdate == 1) {
$roster->tpl->assign_block_vars('body_rowx', array('LOG' => $this->log));
}
if (!$memberlist) {
$roster->tpl->assign_block_vars('body_row.line', array('LINE_VALUE' => $array['CHARACTER_INFO'], 'WIDTH' => '55px'));
$roster->tpl->assign_block_vars('body_row.line', array('LINE_VALUE' => $array['SKILL_INFO'], 'WIDTH' => '55px'));
//.........这里部分代码省略.........
示例14: array
$sx++;
$roster->tpl->assign_block_vars('menue', array('ID' => $bid['b_id'], 'NAME' => $bid['b_name'], 'SELECTED' => isset($sx) && $sx == 1 ? true : false));
$roster->tpl->assign_block_vars('boss_block', array('ID' => $bid['b_id'], 'B_NAME' => $bid['b_name'], 'B_IMAGE' => isset($roster->locale->act['img'][$bid['b_name']]['small']) && file_exists($addon['url'] . 'images/' . $roster->locale->act['img'][$bid['b_name']]['small']) ? '<img src="' . $addon['url'] . 'images/' . $roster->locale->act['img'][$bid['b_name']]['small'] . '" />' : '', 'B_KILLS' => $bid['b_kills'], 'B_PERCENT' => $bid['b_percent']));
if (isset($lootcfg[$inst['inst_id']][$bid['b_id']][$bid['b_lt_id']])) {
foreach ($lootcfg[$inst['inst_id']][$bid['b_id']][$bid['b_lt_id']] as $loot => $lt) {
if ($lt['l_looted'] == 'yes') {
$class = ' class="loot1"';
} else {
$class = ' class="loot2"';
}
$textur = $lt['l_texture'];
if ($lt['l_texture'] == '') {
$textur = $prog->get_item_icon($lt['l_id'], 'loot_info');
}
$roster->tpl->assign_block_vars('boss_block.info', array('ID' => $bid['b_id'], 'I_TEXTURE' => $roster->config['interface_url'] . 'Interface/Icons/' . strtolower($textur) . '.' . $imgext, 'I_ID' => $lt['l_id'], 'I_LT_TABLE' => $lt['l_lt_id'], 'I_QUALITY' => isset($roster->locale->act['quality'][$lt['l_id']]) && $roster->locale->act['quality'][$lt['l_id']] != '' ? $roster->locale->act['quality'][$lt['l_id']] : '', 'NAME' => $lt['l_name'], 'I_TOOLTIP' => makeOverlib($prog->get_tooltip($lt['l_id']), $caption = $items['item_name'], $caption_color = '', $mode = 2, $locale = '', $extra_parameters = ''), 'I_CLASS' => $class, 'I_LOOTED' => $lt['l_looted']));
}
}
/*
$ltt .= '</table>';
$body .= messageboxtoggle($ltt, $title = '<span style="color:#00ff00;">Loots</span>', $style = 'sgreen', false, $width = '500px').'</td></tr>';
$body .= '</table>'.border('sgreen','end').'';
$body .= "</div>\n\n";
*/
}
}
}
$menu .= '</ul></div>' . border('sgray', 'end');
$roster->tpl->set_handle('body', $addon['basename'] . '/index.html');
$roster->tpl->display('body');
}
示例15: foreach
foreach ($hidden as $key => $value) {
$passbox .= '<input name="' . $key . '" type="hidden" value="' . $value . '" />' . "\n";
}
}
$passbox .= '</form><br>' . "\n";
$passbox .= '<!-- End Logout Box -->' . "\n";
print $passbox;
} else {
$passbox = '<!-- Begin Password Input Box -->' . "\n";
$passbox .= '<form action="' . $script_filename . '" method="post" enctype="multipart/form-data" onsubmit="submitonce(this)">' . "\n";
$passbox .= border('sred', 'start', 'Authorization Required') . "\n";
$passbox .= '<table class="bodyline" cellspacing="0" cellpadding="0">' . "\n";
$passbox .= "<tr>\n<td class=\"membersRowRight1\">Password:<br />\n<input name=\"pass_word\" type=\"password\" size=\"30\" maxlength=\"30\" />\n</td>\n</tr>\n";
$passbox .= "<tr>\n<td class=\"membersRowRight2\" valign=\"bottom\">\n<div align=\"right\">\n<input type=\"submit\" value=\"Go\" />\n</div>\n</td>\n</tr>\n";
$passbox .= "</table>\n";
$passbox .= border('sred', 'end');
if (is_array($hidden)) {
foreach ($hidden as $key => $value) {
$passbox .= '<input name="' . $key . '" type="hidden" value="' . $value . '" />' . "\n";
}
}
$passbox .= '</form>' . "\n";
$passbox .= '<!-- End Password Input Box -->' . "\n";
// Show the login box and exit
include_once ROSTER_BASE . 'roster_header.tpl';
include_once ROSTER_BASE . 'lib' . DIR_SEP . 'menu.php';
print '<span class="title_text">' . $wordings[$roster_conf['roster_lang']]['rosterdkp_login_page'] . '</span><br />' . $password_message . $passbox;
include_once ROSTER_BASE . 'roster_footer.tpl';
exit;
}
// ----[ End Check log-in ]---------------------------------