Пример #1
0
 function getItemContent($item_id)
 {
     $content = "\n<table width=\"90%\" cellpadding=\"2\" cellspacing=\"2\" align=\"center\" style=\"font-size:10pt\">";
     if ($item_id == "root") {
         $content .= "\n<tr><td class=\"table_header_bold\" align=\"left\">" . htmlReady($this->tree->root_name) . " </td></tr>";
         $content .= "\n<tr><td class=\"blank\" align=\"left\">" . htmlReady($this->root_content) . " </td></tr>";
         $content .= "\n</table>";
         return $content;
     }
     $range_object = RangeTreeObject::GetInstance($item_id);
     $name = $range_object->item_data['type'] ? $range_object->item_data['type'] . ": " : "";
     $name .= $range_object->item_data['name'];
     $content .= "\n<tr><td class=\"table_header_bold\" align=\"left\">" . htmlReady($name) . " </td></tr>";
     if (is_array($range_object->item_data_mapping)) {
         $content .= "\n<tr><td class=\"blank\" align=\"left\">";
         foreach ($range_object->item_data_mapping as $key => $value) {
             if ($range_object->item_data[$key]) {
                 $content .= "<b>" . htmlReady($value) . ":</b>&nbsp;";
                 $content .= formatLinks($range_object->item_data[$key]) . "&nbsp; ";
             }
         }
         $content .= "</td></tr><tr><td class=\"blank\" align=\"left\">" . "<a href=\"" . URLHelper::getLink("dispatch.php/institute/overview?auswahl=" . $range_object->item_data['studip_object_id']) . "\"" . tooltip(_("Seite dieser Einrichtung in Stud.IP aufrufen")) . ">" . htmlReady($range_object->item_data['name']) . "</a>&nbsp;" . _("in Stud.IP") . "</td></tr>";
     } elseif (!$range_object->item_data['studip_object']) {
         $content .= "\n<tr><td class=\"blank\" align=\"left\">" . _("Dieses Element ist keine Stud.IP-Einrichtung, es hat daher keine Grunddaten.") . "</td></tr>";
     } else {
         $content .= "\n<tr><td class=\"blank\" align=\"left\">" . _("Keine Grunddaten vorhanden!") . "</td></tr>";
     }
     $content .= "\n<tr><td>&nbsp;</td></tr>";
     $kategorien =& $range_object->getCategories();
     if ($kategorien->numRows) {
         while ($kategorien->nextRow()) {
             $content .= "\n<tr><td class=\"table_header_bold\">" . htmlReady($kategorien->getField("name")) . "</td></tr>";
             $content .= "\n<tr><td class=\"blank\">" . formatReady($kategorien->getField("content")) . "</td></tr>";
         }
     } else {
         $content .= "\n<tr><td class=\"blank\">" . _("Keine weiteren Daten vorhanden!") . "</td></tr>";
     }
     $content .= "</table>";
     return $content;
 }
            <tr>
              <th colspan="2" class="left">User Account Edit</th>
            </tr>
          </thead>
          <tr>
            <th width="180"><strong>Username:</strong></th>
            <td><input name="username" type="text" disabled="disabled" class="inputbox" value="<?php 
echo $row['username'];
?>
" size="45" /></td>
          </tr>
          <tr>
            <th><strong>Password:</strong></th>
            <td><input name="password" type="password"  class="inputbox" size="45" />
              &nbsp;&nbsp; <?php 
echo tooltip('Leave it empty unless changing the password');
?>
</td>
          </tr>
          <tr>
            <th><strong>Email Address: <?php 
echo required();
?>
</strong></th>
            <td><input name="email" type="text" class="inputbox" value="<?php 
echo $row['email'];
?>
" size="45" maxlength="40" /></td>
          </tr>
          <tr>
            <th><strong>First Name:</strong> <?php 
Пример #3
0
							<label>Database Username:</label><?php 
    tooltip('Username for the connection; default in setup is <strong>echelon</strong>');
    ?>
								<input type="text" name="db-user" value="echelon" />
								
						</div>
						
						<div class="float-left install-left">

							<label>Database Password:</label><?php 
    tooltip('Password for the Echelon database user');
    ?>
								<input type="password" name="db-pass" />
								
							<label>Database Name:</label><?php 
    tooltip('Name of the Echelon database, default is <strong>echelon</strong>');
    ?>
								<input type="text" name="db-name" value="echelon" />
					
						</div>
						
					</fieldset><!-- end db setup fieldset -->
				
					<input type="submit" name="install" value="Install Echelon" />
				
				</form><!-- close install form -->
				
			<?php 
}
?>
			
        //check if the GUI logs directory is writable
        $rep_ok = is_writable($_SESSION['OCS']['LOG_DIR']);
        if (!$rep_ok) {
            $msg_header_warning[] = $l->g(2021);
        }
    }
    if (version_compare(phpversion(), '5.3.7', '<')) {
        $msg_header_warning[] = $l->g(2113) . " " . phpversion() . " ) ";
    }
    //Error are detected
    if ($msg_header_error != array()) {
        js_tooltip();
        $msg_tooltip = '';
        foreach ($msg_header_error as $poub => $values) {
            if (isset($msg_header_error_sol[$poub])) {
                $tooltip = tooltip($msg_header_error_sol[$poub]);
                $msg_tooltip .= "<div " . $tooltip . ">" . $values . "</div>";
            }
        }
        msg_error("<big>" . $l->g(1263) . "</big><br>" . $msg_tooltip, "top_msg_alert");
    }
    //warning are detected
    if ($msg_header_warning != array()) {
        msg_warning(implode('<br>', $msg_header_warning), "top_msg_warning");
    }
}
if (isset($_SESSION['OCS']['TRUE_USER'])) {
    msg_info($_SESSION['OCS']['TRUE_USER'] . " " . $l->g(889) . " " . $_SESSION['OCS']["loggeduser"]);
}
if (isset($_SESSION['OCS']["TRUE_mesmachines"])) {
    msg_info($l->g(890));
Пример #5
0
    $perms_count = count($perms);
    $rows = ceil($perms_count / 5) + 1;
    $ir = 1;
    $in = 0;
    while ($ir < $rows) {
        echo '<tr>';
        $i = 1;
        while ($i <= 5) {
            $p_id = $perms[$in]['id'];
            $p_name = $perms[$in]['name'];
            $p_desc = $perms[$in]['desc'];
            $p_name_read = preg_replace('#_#', ' ', $p_name);
            $p_name_read = ucwords($p_name_read);
            if ($p_id != "") {
                echo '<td class="perm-td"><label for="' . $p_name . '">' . $p_name_read . '</label><input id="' . $p_name . '" type="checkbox" name="' . $p_name . '" />';
                tooltip($p_desc);
                echo '</td>';
            }
            $in++;
            $i++;
        }
        echo '</tr>';
        $ir++;
    }
    ?>
		</tbody>
		</table>
		
		</fieldset>
		
		<br />
Пример #6
0
		
			<label for="self-reg">Allow self registration:</label><?php 
tooltip('Allow users to register an echelon account? Valid inputs; true, false');
?>
				<input type="text" name="self_reg" id="self_reg" value="<?php 
echo $settings['self_reg'];
?>
"/>
		
		</fieldset>

		<fieldset class="none">
			<legend>Verify Yourself</legend>
		
			<label for="verify-pw">Your current password:</label><?php 
tooltip('Please enter your current Echelon user password so that we know that it is really you editing settings');
?>
				<input type="password" name="password" id="verify-pw" />
		
		</fieldset>
		
		<br class="clear" />
		
		<input type="hidden" name="token" value="<?php 
echo $token_settings;
?>
" />
		<input type="submit" name="settings-sub" value="Save Echelon Settings" />
		
	</form>
		
Пример #7
0
    $tabs_ar[] = 'boss';
    $tabs_ar[] = '';
    $tabs_ar[] = translate('When I am the boss');
    if ($PUBLISH_ENABLED == 'Y' || $RSS_ENABLED == 'Y') {
        $tabs_ar[] = 'subscribe';
        $tabs_ar[] = '';
        $tabs_ar[] = translate('Subscribe/Publish');
    }
    if ($ALLOW_USER_HEADER == 'Y' && ($CUSTOM_SCRIPT == 'Y' || $CUSTOM_HEADER == 'Y' || $CUSTOM_TRAILER == 'Y')) {
        $tabs_ar[] = 'header';
        $tabs_ar[] = '';
        $tabs_ar[] = translate('Custom Scripts');
    }
    if ($ALLOW_COLOR_CUSTOMIZATION == 'Y') {
        $tabs_ar[] = 'colors';
        $tabs_ar[] = ' title="' . tooltip('colors-help');
        $tabs_ar[] = translate('Colors');
    }
}
// .
// Move the loops here and combine a few.
for ($i = 0, $cnt = count($tabs_ar); $i < $cnt; $i += 3) {
    $tabs .= '
        <span class="tab' . ($i > 0 ? 'bak' : 'for') . '" id="tab_' . $tabs_ar[$i] . $tabs_ar[$i + 1] . '"><a href="" onclick="return setTab( \'' . $tabs_ar[$i] . '\' );">' . $tabs_ar[$i + 2] . '</a></span>';
}
$tmp = $prad ? $s['LANGUAGE'] : $prefarray['LANGUAGE'];
while (list($key, $val) = each($languages)) {
    // Don't allow users to select "browser-defined". We want them to pick
    // a language so that when we send reminders (done without the benefit
    // of a browser-preferred language), we'll know which language to use.
    // DO let them select browser-defined for the public user or NUC.
Пример #8
0
echo Icon::create('arr_1down', 'clickable')->asImg();
?>
                <? else: ?>
                    <a class="tree" name="<?php 
echo $id;
?>
"
                        href="<?php 
echo $controller->url_for('settings/notification/open', $id);
?>
#<?php 
echo $id;
?>
"
                       <?php 
echo tooltip(_('Gruppierung öffnen'), true);
?>
>
                       <?php 
echo Icon::create('arr_1right', 'clickable')->asImg();
?>
                <? endif; ?>
                        <?php 
echo htmlReady(my_substr(implode(' &gt; ', (array) $group_names[$id]), 0, 70));
?>
                    </a>
                </th>
            </tr>
        <? endif; ?>
    <? if ($id === 'not_grouped' || isset($open[$id])): ?>
        <? foreach ($members as $member): ?>
Пример #9
0
                                <? if (count($area_options_selected[$area_key])) : ?>
                                    <option disabled  class="news_area_title"
                                            style="background-image: url('<?php 
echo Icon::create($area_data['icon'], 'info')->asImagePath();
?>
');">
                                        <?php 
echo htmlReady($area_data['title']);
?>
                                    </option>
                                    <? foreach ($area_options_selected[$area_key] as $area_option_key => $area_option_title) : ?>
                                        <option <?php 
echo (StudipNews::haveRangePermission('edit', $area_option_key) or $may_delete) ? 'value="' . $area_option_key . '"' : 'disabled';
?>
                                                <?php 
echo tooltip($area_option_title);
?>
>
                                            <?php 
echo htmlReady(mila($area_option_title));
?>
                                        </option>
                                    <? endforeach ?>
                                <? endif ?>
                            <? endforeach ?>
                            </select>
                            </label>
                        </div>
                    </td>
                </tr>
            </tbody>
          <label for="private-2">No</label>
          <input name="private" type="radio" id="private-2" value="0" checked="checked" />
          <?php 
        echo tooltip('Private memberships are not available to front end users.');
        ?>
</span></td>
      </tr>
      <tr>
        <td>Active Membership:</td>
        <td><span class="input-out">
          <label for="active-1">Yes</label>
          <input name="active" type="radio" id="active-1" value="1" />
          <label for="active-2">No</label>
          <input name="active" type="radio" id="active-2" value="0" checked="checked" />
          <?php 
        echo tooltip('Only active memberships will be available for purchase.');
        ?>
</span></td>
      </tr>
      <tr>
        <td>Membership Description:</td>
        <td><textarea class="inputbox" cols="50" name="description" rows="5"></textarea></td>
      </tr>
    </tbody>
  </table>
</form>
<?php 
        echo $core->doForm("processMembership");
        break;
    default:
        $memrow = $member->getMemberships();
Пример #11
0
 /**
  * Creates the form for the Polskala templates
  * @param
  */
 function createTemplateFormFree(&$question)
 {
     global $evalID;
     $answer = $question->getNextChild();
     $tableA = new HTM("table");
     $tableA->attr("border", "0");
     $tableA->attr("cellpadding", "2");
     $tableA->attr("cellspacing", "0");
     $tableA->attr("width", "100%");
     $trA = new HTM("tr");
     $tdA = new HTM("td");
     $tdA->attr("class", "table_header_bold");
     $tdA->attr("align", "left");
     $tdA->html("<b>" . (strstr($this->getPageCommand(), "create") ? _("Freitextvorlage erstellen") : _("Freitextvorlage bearbeiten")) . "</b>");
     $trA->cont($tdA);
     $tableA->cont($trA);
     $trA = new HTM("tr");
     $tdA = new HTM("td");
     $form = new HTM("form");
     $form->attr("action", URLHelper::getLink("?page=edit&evalID=" . $evalID));
     $form->attr("method", "post");
     $form->html(CSRFProtection::tokenTag());
     $b = new HTM("b");
     $b->cont(_("Name") . ": ");
     $form->cont($b);
     $input = new HTMpty("input");
     $input->attr("type", "text");
     $input->attr("name", "template_name");
     $name = $question->getText();
     $input->attr("value", $question->getText());
     //    $input->attr( "value", $name );
     $input->attr("style", "vertical-align:middle;");
     $input->attr("size", 22);
     $input->attr("maxlength", 22);
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_id");
     $input->attr("value", $question->getObjectID());
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_type");
     $input->attr("value", $question->getType());
     $form->cont($input);
     $input = new HTMpty("input");
     $input->attr("type", "hidden");
     $input->attr("name", "template_multiple");
     $input->attr("value", NO);
     $form->cont($input);
     $img = new HTMpty("img");
     $img->attr("src", Icon::create('info-circle', 'inactive')->asImagePath(16));
     $img->attr("class", "middle");
     $img->stri(tooltip(_("Geben Sie hier einen Namen für Ihre Vorlage ein. Ändern Sie den Namen, um eine neue Vorlage anzulegen."), FALSE, TRUE));
     $form->cont($img);
     $form->cont($this->BR);
     //$answer = $question->getNextChild();
     //$answer->toString();
     /* Anzahl Zeilen------------------------------------------------------ */
     $form->cont($this->createSubHeadline(_("Anzahl Zeilen") . ": "));
     $select = new HTM("select");
     $select->attr("name", "template_add_num_answers");
     $select->attr("size", "1");
     $select->attr("style", "vertical-align:middle;");
     for ($i = 1; $i <= 25; $i++) {
         $option = new HTM("option");
         $option->attr("value", $i);
         $option->cont($i);
         if ($i == $answer->getRows()) {
             $option->addAttr("selected", "selected");
         }
         $select->cont($option);
     }
     $form->cont($select);
     $form->cont($this->BR);
     /* uebernehmen / loeschen Button ---------------------------- */
     $input = Button::create(_('Übernehmen'), 'template_savefree_button');
     $odb = new EvaluationObjectDB();
     //if($odb->getGlobalPerm()=="root"){
     //  $myuserid = 0;
     //}
     //else{
     //   $myuserid = $user->id;
     //}
     //if($question->getParentID()==$myuserid){
     //   $loesch=1;
     if (!strstr($this->command, "create")) {
         $showDelete = YES;
         $input2 = Button::createAccept(_('Löschen'), 'template_delete_button');
     }
     $table = new HTM("table");
     $table->attr("border", "0");
     $table->attr("align", "center");
     $table->attr("cellspacing", "0");
     $table->attr("cellpadding", "3");
     $table->attr("width", "100%");
     $tr = new HTM("tr");
     $td = new HTM("td");
     $td->attr("class", "content_body");
     $td->attr("align", "center");
     $td->cont($input);
     $tr->cont($td);
     if ($showDelete) {
         $td = new HTM("td");
         $td->attr("class", "content_body");
         $td->attr("align", "center");
         $td->cont($input2);
         $tr->cont($td);
     }
     $table->cont($tr);
     $form->cont($table);
     $tdA->cont($form);
     $trA->cont($tdA);
     $tableA->cont($trA);
     return $tableA;
 }
Пример #12
0
    <tr>
        <td width="20">
        <? if ($comments_admin): ?>
            <input type="CHECKBOX" name="mark_comments[]" value="<?php 
echo $comment['comment_id'];
?>
" <?php 
echo tooltip(_("Diesen Kommentar zum Löschen vormerken"), false);
?>
>
        <? endif ?>
        </td>
        <td>
            <div style="display: inline; color: #888888; font-size: 0.8em;">#<?php 
echo $index + 1;
?>
 - </div>
            <a href="<?php 
echo URLHelper::getLink('dispatch.php/profile?username=' . $comment[2]);
?>
" style="font-weight: bold; color: #888888; font-size: 0.8em;">
                <?php 
echo htmlReady($comment[1]);
?>
            </a>
            <div style="display: inline; color: #888888; font-size: 0.8em; float: right;">
            <?php 
echo reltime($comment[3]);
?>
            </div>
            <br>
				</td>
			</tr>
<?php 
}
?>
			<tr style="height: 24px;">
				<td><span class="warning"><?php 
echo $_lang['resource_opt_emptycache'];
?>
</span></td>
				<td>
<?php 
$disabled = $cache_type == 0 ? ' disabled="disabled"' : '';
echo input_checkbox('syncsite', true, $disabled);
echo input_hidden('syncsite');
echo tooltip($_lang['resource_opt_emptycache_help']);
?>
				</td>
			</tr>
		</table>
	</div><!-- end #tabSettings -->

<?php 
if ($modx->hasPermission('edit_doc_metatags') && $modx->config['show_meta']) {
    // get list of site keywords
    $keywords = array();
    $ds = $modx->db->select('id,keyword', '[+prefix+]site_keywords', '', 'keyword ASC');
    $limit = $modx->db->getRecordCount($ds);
    if ($limit > 0) {
        while ($row = $modx->db->getRow($ds)) {
            $keywords[$row['id']] = $row['keyword'];
      </tr>
      <tr>
        <td>Active:</td>
        <td><span class="input-out">
          <label for="active-1">Yes</label>
          <input name="active" type="radio" id="active-1"  value="1" <?php 
        getChecked($row['active'], 1);
        ?>
 />
          <label for="active-2">No</label>
          <input name="active" type="radio" id="active-2" value="0" <?php 
        getChecked($row['active'], 0);
        ?>
 />
          <?php 
        echo tooltip('Only active gateways will be available for payment methods.');
        ?>
</span></td>
      </tr>
      <tr>
        <td>IPN Url:</td>
        <td><?php 
        echo SITEURL . '/gateways/' . $row['dir'] . '/ipn.php';
        ?>
</td>
      </tr>
    </tbody>
  </table>
  <input name="id" type="hidden" value="<?php 
        echo $core->id;
        ?>
Пример #15
0
        foreach($sem_data as $seminar_id => $data){
            if (key($data['sem_number']) != $sem_number){
                $sem_number = key($data['sem_number']);
                echo "\n<option value=\"0\" style=\"font-weight:bold;color:red;\">&nbsp;</option>";
                echo "\n<option value=\"0\" style=\"font-weight:bold;color:red;\">" . $the_tree->tree->sem_dates[$sem_number]['name'] . ":</option>";
                echo "\n<option value=\"0\" style=\"font-weight:bold;color:red;\">" . str_repeat("¯",floor($cols * .8)) . "</option>";
            }
            $sem_name = key($data["Name"]);
            $sem_number_end = key($data["sem_number_end"]);
            if ($sem_number != $sem_number_end){
                $sem_name .= " (" . $the_tree->tree->sem_dates[$sem_number]['name'] . " - ";
                $sem_name .= (($sem_number_end == -1) ? _("unbegrenzt") : $the_tree->tree->sem_dates[$sem_number_end]['name']) . ")";
            }
            $line = htmlReady(my_substr($sem_name,0,$cols));
            $tooltip = $sem_name . " (" . join(",",array_keys($data["doz_name"])) . ")";
            echo "\n<option value=\"$seminar_id\" " . tooltip($tooltip,false) . ">$line</option>";
        }
    }
    ?>
    </select><br>&nbsp;<br><select name="mark_list_aktion" style="font-size:8pt;width:100%;">
    <?
    if (is_array($_possible_open_items) && count($_possible_open_items) && !(count($_possible_open_items) == 1 && $_possible_open_items['root'])){
        echo "\n<option  value=\"insert_all\">" . _("Markierte in alle geöffneten Bereiche eintragen") . "</option>";
        foreach ($_possible_open_items as $item_id => $value){
            echo "\n<option value=\"insert_{$item_id}\">"
                . sprintf(_("Markierte in \"%s\" eintragen"),htmlReady(my_substr($the_tree->tree->tree_data[$item_id]['name'],0,floor($cols * .8)))) . "</option>";
        }
    }
    ?>
    <option value="del"><?php 
echo _("Markierte aus der Merkliste löschen");
Пример #16
0
function etooltip($str)
{
    echo tooltip($str);
}
Пример #17
0
    }
    if ($char_talents["spell"] == 51179 || $char_talents["spell"] == 51180 || $char_talents["spell"] == 51181 || $char_talents["spell"] == 51182 || $char_talents["spell"] == 51183) {
        switch ($char_talents["spell"]) {
            case 51179:
                $points[3][39] = 1;
                break;
            case 51180:
                $points[3][39] = 2;
                break;
            case 51181:
                $points[3][39] = 3;
                break;
            case 51182:
                $points[3][39] = 4;
                break;
            case 51183:
                $points[3][39] = 5;
                $color = $color2;
                break;
        }
        $tree[3][39] = "<a class='tooltip'><img class='icon' style='border:2px solid " . $color . ";' src='img/" . $path . "/3/39.jpg' alt=''/>\n\t\t\t\t<div><span class='points' style='color:" . $color . ";border:1px solid " . $color . ";'>" . $points[3][39] . "/5</span>\n\t\t\t\t<emi>" . tooltip($char_talents["spell"]) . "</emi></div></a>";
    }
    if ($char_talents["spell"] == 48438) {
        $points[3][42] = 1;
        $color = $color2;
        $tree[3][42] = "<a class='tooltip'><img class='icon' style='border:2px solid " . $color . ";' src='img/" . $path . "/3/42.jpg' alt=''/>\n\t\t\t\t<div><span class='points' style='color:" . $color . ";border:1px solid " . $color . ";'>" . $points[3][42] . "/1</span>\n\t\t\t\t<emi>" . tooltip($char_talents["spell"]) . "</emi></div></a>";
    }
}
$sum1 = @array_sum($points[1]) or $sum1 = 0;
$sum2 = @array_sum($points[2]) or $sum2 = 0;
$sum3 = @array_sum($points[3]) or $sum3 = 0;
Пример #18
0
<?
    $tooltip = function ($size) {
        if (!$size) {
            $tip = _('Keine Einträge');
        } else {
            $template = $size == 1 ? _('%d Eintrag') : _('%d Einträge');
            $tip = sprintf($template, $size);
        }
        return tooltip($tip, false);
    }
?>
<table class="contact-header" width="70%">
    <colgroup>
        <col width="9%">
    <? for ($i = 0; $i < 26; $i++): ?>
        <col width="3.5%">
    <? endfor; ?>
    </colgroup>
    <tbody>
        <tr>
            <td nobreak class="<? if (($filter ?: 'all') == 'all') echo 'active'; ?>"
                <?php 
echo $tooltip($size_of_book);
?>
            >
                <a href="<?php 
echo URLHelper::getLink('?filter=all');
?>
">a-z</a>
            </td>
        <? for ($i = 0, $chr = 'a'; $i++ < 26; $chr++): ?>
Пример #19
0
                <a href="<?php 
echo URLHelper::getURL('dispatch.php/tour/admin_details/' . $tour->tour_id . '?delete_tour_step=' . $step->step);
?>
" <?php 
echo tooltip(_('Schritt löschen'));
?>
>
                <?php 
echo Icon::create('trash', 'clickable')->asImg();
?>
</a>
                <a href="<?php 
echo URLHelper::getURL('dispatch.php/tour/edit_step/' . $tour->tour_id . '/' . ($step->step + 1) . '/new');
?>
" target="blank" <?php 
echo tooltip(_('Neuen Schritt hinzufügen'));
?>
 data-dialog="size=auto;reload-on-close">
                <?php 
echo Icon::create('add', 'clickable')->asImg();
?>
</a>
                </td>
                </tr>
            <? endforeach ?>
        <? else : ?>
            <tr>
            <td colspan="6">
            <?php 
echo _('In dieser Tour sind bisher keine Schritte vorhanden.');
?>
Пример #20
0
function etooltip($str, $decode = '')
{
    echo tooltip($str, $decode);
}
Пример #21
0
function statistic($from, $field)
{
    global $mydb, $lang, $config, $settings;
    $mydb->select("`{$field}`", "`{$from}`", "`aprove` = '1'");
    if ($mydb->fetch_row() > 0) {
        while ($row = $mydb->fetch_array()) {
            $fields[] = $row[$field];
        }
        $fields = array_count_values($fields);
        arsort($fields);
        $fields = array_slice_key($fields, 0, 10);
        $statistic = "<TABLE CLASS=PANEL ALIGN=CENTER WIDTH=90% CELLSPACING=0 CELLPADING=0 BORDER=0>";
        $statistic .= "<TR><TD class=headerTB ALIGN=CENTER COLSPAN=3>-- {$lang['TOPUSERS']} --</TD>";
        $count = 1;
        foreach ($fields as $key => $rank) {
            $info = informer($key);
            $statistic .= "<TR><TD WIDTH=15%>{$count}- </TD><TD WIDTH=55%><A " . tooltip(userinfo, $key) . ">{$info['username']}</A></TD><TD WIDTH=30%>" . $rank . "</TD></TR>";
            $count++;
        }
        $statistic .= "</TABLE>";
    } else {
        $statistic = "<TABLE CLASS=PANEL ALIGN=CENTER WIDTH=90% CELLSPACING=0 CELLPADING=0 BORDER=0>";
        $statistic .= "<TR><TD class=headerTB ALIGN=CENTER COLSPAN=3>{$lang['THERE_IS_NO_ITEM']}</TD></TR>";
        $statistic .= "</TABLE>";
    }
    return $statistic;
}
Пример #22
0
    // minus 1
    while ($i <= $count) {
        echo '<option value="' . $games_list[$i]['id'] . '">' . $games_list[$i]['name'] . '</option>';
        $i++;
    }
    ?>
				</select><?php 
    tooltip('What game is this server to be connected with?');
    ?>
		</fieldset>
			
		<fieldset class="none">
			<legend>Rcon Info</legend>
				
			<label for="rcon-ip">Rcon IP:</label><?php 
    tooltip('The IP used to connect to Rcon of this server');
    ?>
				<input type="text" name="rcon-ip" id="rcon-ip" />

			<label for="rcon-port">Rcon Port:</label>
				<input type="text" class="int" style="width: 50px !important" name="rcon-port" id="rcon-port" /><br />
			
			<label for="rcon-pass">Rcon Password:</label>
				<input type="password" name="rcon-pass" id="-rcon-pass" />

		</fieldset>

	</fieldset><!-- end general game settings -->
	
		<input type="hidden" name="type" value="add" />
		<input type="hidden" name="cng-pw" value="on" />
Пример #23
0
 /**
 * creates an image
 *
 * @access  private
 * @param   string   $pic   the image
 * @param   string   $alt   the alt-text (optional)
 * @param   string   $args  additional options (optional)
 * @return  string          the image (html)
 */
 function createImage($pic, $alt = "", $args = NULL)
 {
     if (!isset($args['alt'])) {
         $args['alt'] = $alt;
         $args['title'] = $alt;
     }
     $args['border'] = 0;
     $args['style'] = "vertical-align:middle;";
     $img = new HTMLempty("img");
     $img->addString(tooltip($alt, TRUE, TRUE));
     $img->addAttr("src", $pic);
     $img->addAttr("border", "0");
     $img->addAttr("style", "vertical-align:middle;");
     if (empty($args)) {
         $img->addAttr("alt", $alt);
         $img->addAttr("title", $alt);
     } else {
         $img->addString($alt);
     }
     if ($args) {
     }
     $img->addString($args);
     return $img->createContent();
 }
 function getSemPath()
 {
     if ($parents = $this->tree->getParents($this->start_item_id)) {
         for ($i = count($parents) - 1; $i >= 0; --$i) {
             $ret .= "&nbsp;&gt;&nbsp;<a href=\"" . URLHelper::getLink($this->getSelf("start_item_id={$parents[$i]}", false)) . "\">" . htmlReady($this->tree->tree_data[$parents[$i]]["name"]) . "</a>";
         }
     }
     if ($this->start_item_id == "root") {
         $ret = "&nbsp;&gt;&nbsp;<a href=\"" . URLHelper::getLink($this->getSelf("start_item_id=root", false)) . "\">" . htmlReady($this->tree->root_name) . "</a>";
     } else {
         $ret .= "&nbsp;&gt;&nbsp;<a href=\"" . URLHelper::getLink($this->getSelf("start_item_id={$this->start_item_id}", false)) . "\">" . htmlReady($this->tree->tree_data[$this->start_item_id]["name"]) . "</a>";
     }
     $ret .= "&nbsp;<a href=\"#\" " . tooltip(kill_format($this->getTooltip($this->start_item_id)), false, true) . ">";
     $ret .= Icon::create('info-circle', 'inactive')->asImg();
     $ret .= "</a>";
     return $ret;
 }
Пример #25
0
            <br>
            <br>
            <?php 
echo _('Profilbesuche:');
?>
            <?php 
echo object_return_views($current_user->user_id);
?>
            <br>
            <? if(!empty($score) && !empty($score_title)) :?>
                <br>
                <a href="<?php 
echo URLhelper::getLink("dispatch.php/score");
?>
" <?php 
echo tooltip(_("Zur Rangliste"));
?>
><?php 
echo _("Stud.IP-Punkte:");
?>
 <?php 
echo $score;
?>
<br>
                    <?php 
echo _("Rang:");
?>
 <?php 
echo $score_title;
?>
                </a>
Пример #26
0
     $roster->set_message('<pre>' . $roster->db->error() . '</pre>', 'MySQL Said', 'error');
     return;
 }
 $count = 1;
 $treenum = 1;
 //$i=$tid;
 foreach ($info['talents'] as $a => $treedata) {
     $lvl = 15;
     foreach ($treedata as $t => $talent) {
         $tooltip = '';
         $tooltip .= isset($talent['spell']['powerCost']) ? $talent['spell']['powerCost'] . '<br />' : '';
         $tooltip .= isset($talent['spell']['range']) ? $talent['spell']['range'] . '<br />' : '';
         $tooltip .= isset($talent['spell']['castTime']) ? $talent['spell']['castTime'] . '<br />' : '';
         $tooltip .= isset($talent['spell']['cooldown']) ? $talent['spell']['cooldown'] . '<br />' : '';
         $tooltip .= '<br><span style="color:#00bbff;">' . $talent['spell']['description'] . '</span>';
         $values = array('talent_id' => $talent['spell']['id'], 'talent_num' => $t, 'tree_order' => '0', 'class_id' => $class_id, 'name' => $talent['spell']['name'], 'tree' => '', 'tooltip' => tooltip($tooltip), 'texture' => $talent['spell']['icon'], 'row' => $talent['tier'] + 1, 'column' => $talent['column'] + 1, 'rank' => $lvl);
         $querystr = "INSERT INTO `" . $roster->db->table('talents_data') . "` " . $roster->db->build_query('INSERT', $values) . ";";
         $result = $roster->db->query($querystr);
         $count++;
         $t++;
     }
     $lvl = $lvl + 15;
     $count++;
     $treenum++;
 }
 foreach ($info['specs'] as $a => $treedata) {
     $values = array('tree' => $treedata['name'], 'order' => $treedata['order'], 'class_id' => $class_id, 'background' => strtolower($treedata['backgroundImage']), 'icon' => $treedata['icon'], 'roles' => $treedata['role'], 'desc' => $treedata['description'], 'tree_num' => $treedata['order']);
     $querystr = "INSERT INTO `" . $roster->db->table('talenttree_data') . "` " . $roster->db->build_query('INSERT', $values) . "\n\t\t\t\t\t;";
     $result = $roster->db->query($querystr);
 }
 $messages .= sprintf($roster->locale->act['adata_update_class'], $roster->locale->act['id_to_class'][$class_id]) . ' - ';
              <th width="250"><strong>Username: <?php 
    echo required();
    ?>
</strong></th>
              <td><span id="getusername">
                <input name="username" type="text" class="inputbox"  id="username" size="45" />
                <img src="images/yes.png" alt="" id="yes" style="display:none" class="tooltip" title="Username Available" /> <img src="images/delete.png" alt="" id="no" style="display:none" class="tooltip" title="Username Not Available" /> </span></td>
            </tr>
            <tr>
              <th><strong>Password: <?php 
    echo required();
    ?>
</strong></th>
              <td><input name="pass" type="password" class="inputbox"  size="45" />
                &nbsp; <?php 
    echo tooltip('Password must be at least 6 characters long.');
    ?>
</td>
            </tr>
            <tr>
              <th><strong>Repeat Password: <?php 
    echo required();
    ?>
</strong></th>
              <td><input name="pass2" type="password" class="inputbox"  size="45" /></td>
            </tr>
            <tr>
              <th><strong>Email Address:</strong> <?php 
    echo required();
    ?>
</th>
Пример #28
0
        } else {
            if ($size > 5) {
                $size = 5;
            }
        }
        print "<tr title=\"" . tooltip("participants-help") . "\"><td class=\"tooltipselect\">\n<label for=\"entry_part\">" . translate("Participants") . ":</label></td><td>\n";
        print "<select name=\"participants[]\" id=\"entry_part\" size=\"{$size}\" multiple=\"multiple\">{$users}\n";
        print "</select>\n";
        if ($groups_enabled == "Y") {
            echo "<input type=\"button\" onclick=\"selectUsers()\" value=\"" . translate("Select") . "...\" />\n";
        }
        echo "<input type=\"button\" onclick=\"showSchedule()\" value=\"" . translate("Availability") . "...\" />\n";
        print "</td></tr>\n";
        // external users
        if (!empty($allow_external_users) && $allow_external_users == "Y") {
            print "<tr title=\"" . tooltip("external-participants-help") . "\"><td style=\"vertical-align:top;\" class=\"tooltip\">\n<label for=\"entry_extpart\">" . translate("External Participants") . ":</label></td><td>\n";
            print "<textarea name=\"externalparticipants\" id=\"entry_extpart\" rows=\"5\" cols=\"40\">";
            print $external_users . "</textarea>\n</td></tr>\n";
        }
    }
    ?>
</table>
<?php 
    if ($useTabs) {
        ?>
</div>
<?php 
    }
    /* $useTabs */
    ?>
Пример #29
0
                    <?php 
echo Icon::create('arr_2left', 'clickable')->asImg(16, ["style" => 'vertical-align: text-bottom;']);
?>
                    <?php 
echo strftime('%Y', strtotime('-1 year', $atime));
?>
                </a>
            </div>
            <div class="calhead" style="text-align: center; display: inline-block; width:50%;">
                <?php 
echo date('Y', $calendars[0]->getStart());
?>
            </div>
            <div style="text-align: right; display: inline-block; width: 20%; white-space: nowrap;">
                <a <?php 
echo tooltip(_('ein Jahr vor'));
?>
 href="<?php 
echo $controller->url_for('calendar/group/year', array('atime' => strtotime('+1 year', $atime)));
?>
">
                    <?php 
echo strftime('%Y', strtotime('+1 year', $atime));
?>
                    <?php 
echo Icon::create('arr_2right', 'clickable')->asImg(16, ["style" => 'vertical-align: text-bottom;']);
?>
                </a>
            </div>
        </td>
    </tr>
Пример #30
0
Файл: form.php Проект: 68kb/68kb
echo form_input('article_keywords', set_value('article_keywords', @$row['article_keywords']), 'size="25"');
?>
			<?php 
echo tooltip(lang('lang_keywords_desc'));
?>
		</div>

		<div class="row1">
			<?php 
echo form_label(lang('lang_weight') . ':', 'article_order');
?>
			<?php 
echo form_input('article_order', set_value('article_order', @$row['article_order']), 'size="25"');
?>
			<?php 
echo tooltip(lang('lang_weight_desc'));
?>
		</div>

		<fieldset id="categories">
			<legend><?php 
echo lang('lang_categories');
?>
</legend>
			<div class="multiple">
				<ul><li><label><input type="checkbox" id="checkbox" /> <em><?php 
echo lang('lang_select_all');
?>
</em></label></li></ul>
				<?php 
echo $tree;