当前位置: 首页>>代码示例>>PHP>>正文


PHP Button::create方法代码示例

本文整理汇总了PHP中Studip\Button::create方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::create方法的具体用法?PHP Button::create怎么用?PHP Button::create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Studip\Button的用法示例。


在下文中一共展示了Button::create方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getAdminModuleLinks

 /**
  * get admin module links
  *
  * returns links add or remove a module from course
  * @access public
  * @return string returns html-code
  */
 function getAdminModuleLinks()
 {
     global $connected_cms, $view, $search_key, $cms_select, $current_module;
     $output .= "<form method=\"POST\" action=\"" . URLHelper::getLink() . "\">\n";
     $output .= CSRFProtection::tokenTag();
     $output .= "<input type=\"HIDDEN\" name=\"view\" value=\"" . htmlReady($view) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"search_key\" value=\"" . htmlReady($search_key) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"cms_select\" value=\"" . htmlReady($cms_select) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_type\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getModuleType()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_id\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getId()) . "\">\n";
     $output .= "<input type=\"HIDDEN\" name=\"module_system_type\" value=\"" . htmlReady($this->cms_type) . "\">\n";
     if ($connected_cms[$this->cms_type]->content_module[$current_module]->isConnected()) {
         $output .= "&nbsp;" . Button::create(_('Entfernen'), 'remove');
     } elseif ($connected_cms[$this->cms_type]->content_module[$current_module]->isAllowed(OPERATION_WRITE)) {
         $output .= "<div align=\"left\"><input type=\"CHECKBOX\" value=\"1\" name=\"write_permission\" style=\"vertical-align:middle\">";
         $output .= _("Mit Schreibrechten für alle Dozenten/Tutoren dieser Veranstaltung") . "<br>";
         $output .= "<input type=\"CHECKBOX\" value=\"1\" style=\"vertical-align:middle\" name=\"write_permission_autor\">";
         $output .= _("Mit Schreibrechten für alle Teilnehmer dieser Veranstaltung") . "</div>";
         $output .= Button::create(_('Hinzufügen'), 'add') . "<br>";
     } else {
         $output .= "&nbsp;" . Button::create(_('Hinzufügen'), 'add');
     }
     $output .= "</form>";
     return $output;
     //      $output .= parent::getAdminModuleLinks();
 }
开发者ID:ratbird,项目名称:hope,代码行数:33,代码来源:Ilias3ConnectedLink.class.php

示例2: editMarkerDescription

    function editMarkerDescription ($markers, $new_datafields = FALSE) {
        $this->css->resetClass();
        $this->css->switchClass();

        $out = "<tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 0.7em\">\n";
        $out .= '<tr' . $this->css->getFullClass() . ">\n";
        $out .= '<td><font size="2"><b>' . _("Marker") . "</b></font></td>\n";
        $out .= '<td><font size="2"><b>' . _("Beschreibung") . "</b></font></td>\n";
        $out .= "</tr>\n";
        $this->css->switchClass();
        $spacer = 0;
        $global_vars = FALSE;
        foreach ((array) $markers as $marker) {
            $mark = $marker[0];
            $description = $marker[1];
            if ($mark == '__GLOBAL__') {
                $out .= '<tr' . $this->css->getFullClass() . ">\n";
                $out .= '<td colspan="2"><strong>' . htmlReady(_("Globale Variablen")) . '</strong></td>';
                $spacer++;
                $global_vars = TRUE;
                $this->css->switchClass();
            } else if ($mark{0} == '<') {
                if ($global_vars) {
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td colspan="2">&nbsp;</td>';
                    $spacer--;
                    $global_vars = FALSE;
                    $this->css->switchClass();
                }
                if (substr($mark, 0, 8) == '<!-- END') {
                    $spacer--;
                    $this->css->switchClass();
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td colspan="2">&nbsp;</td>';
                    $this->css->switchClass();
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td nowrap="nowrap">' . str_repeat('&nbsp;', $spacer * 4);
                    $out .= htmlReady($mark) . '</td><td>' . htmlReady($description);
                    $out .= '</td>';
                } else {
                    if ($spacer > 0 && substr($mark, 0, 10) != '<!-- BEGIN') {
                        $this->css->switchClass();
                        $out .= '<tr' . $this->css->getFullClass() . ">\n";
                        $out .= '<td colspan="2">&nbsp;</td>';
                        $this->css->switchClass();
                    }
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td nowrap="nowrap">' . str_repeat('&nbsp;', $spacer * 4);
                    $out .= htmlReady($mark) . '</td><td>' . htmlReady($description);
                    $out .= '</td>';
                    $spacer++;
                    $this->css->switchClass();
                    $out .= '<tr' . $this->css->getFullClass() . ">\n";
                    $out .= '<td colspan="2">&nbsp;</td>';
                    $this->css->switchClass();
                }
            } else {
                $out .= '<tr' . $this->css->getFullClass() . ">\n";
                $out .= '<td>' . str_repeat('&nbsp;', $spacer * 4);
                $out .= $mark . '</td><td>' . htmlReady($description);
                $out .= '</td>';
            }
            $out .= "</tr>\n";
        }
        if ($new_datafields) {
            $this->css->resetClass();
            $out .= '<tr' . $this->css->getFullClass() . ">\n";
            $out .= "<td colspan=\"2\">&nbsp;</td></tr>\n";
            $out .= '<tr' . $this->css->getFullClass() . ">\n";
            $out .= '<td colspan="2" align="center">' . Button::create(_('Aktualisieren')). "</td></tr>\n";
        }
        $out .= "</table></td></tr>\n";

        return $out;
    }
开发者ID:ratbird,项目名称:hope,代码行数:75,代码来源:ExternEditModule.class.php

示例3: _

echo _('Die Ressource darf mehrfach zur gleichen Zeit belegt werden - <br>Überschneidungschecks finden <u>nicht</u> statt!');
?>
                </label>
            </td>
            <td>
                <input type="checkbox" id="change_multiple_assign" name="change_multiple_assign" value="1"
                       <? if ($resObject->getMultipleAssign()) echo 'checked'; ?>>
            </td>
        </tr>
    <? endif; ?>
        <tr>
            <td>&nbsp;</td>
            <td colspan="2" align="center">
                <br>
                <?php 
echo Button::create(_('Übernehmen'));
?>
                <? if ($resObject->isUnchanged()) : ?>
                    <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getLink('?cancel_edit=' . $resObject->id));
?>
                <? endif; ?>
                <br>&nbsp;
            </td>
        </tr>
    </tbody>
</table>

</form>
<br><br>
<?
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:show_properties_forms.php

示例4: htmlReady

                            <? endif ?>

                            <!-- helplink -->
                            <? if (isset($info['helplink'])) : ?>
                                <a class="helplink" href=" <?php 
echo htmlReady($info['helplink']);
?>
 ">...mehr</a>
                            <? endif ?>

                        </div>
                    </div>
                <? } ?>
            </td>
        </tr>
    <?
    }
} ?>
</tbody>
<tfoot>
<tr>
    <td align="center" colspan="3">
        <?php 
echo Button::create(_('An- / Ausschalten'), 'uebernehmen');
?>
    </td>
</tr>
</tfoot>
</table>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:30,代码来源:index.php

示例5: htmlReady

echo htmlReady($category->content);
?>
</textarea>
                </td>
            </tr>
        </tbody>
    <? $last = $category; 
       endforeach; ?>
    <? if ($hidden_count > 0): ?>
        <tbody>
            <tr>
                <td colspan="4">
                    <?php 
echo sprintf(ngettext('Es existiert zusätzlich eine Kategorie, die Sie nicht einsehen und bearbeiten können.', 'Es existiereren zusätzlich %s Kategorien, die Sie nicht einsehen und bearbeiten können.', $hidden_count), $hidden_count);
?>
                </td>
            </tr>
        </tbody>
    <? endif; ?>
        <tfoot>
            <tr>
                <td colspan="4">
                    <?php 
echo Button::create(_('Übernehmen'), 'store');
?>
                </td>
        </tfoot>
    </table>
</form>
<? endif; ?>
开发者ID:ratbird,项目名称:hope,代码行数:30,代码来源:categories.php

示例6: createQuestionForm

 /**
 * creates the html for the question-input
 *
 * @access   private
 * @return   string the html
 */
 function createQuestionForm()
 {
     $qgroup =& $this->tree->getGroupObject($this->itemID);
     $questions = $qgroup->getChildren();
     $templateID = $qgroup->getTemplateID();
     $table = new HTML("table");
     $table->addAttr("border", "0");
     $table->addAttr("align", "center");
     $table->addAttr("cellspacing", "0");
     $table->addAttr("cellpadding", "2");
     $table->addAttr("width", "98%");
     $tr = new HTML("tr");
     $td = new HTML("td");
     $td->addAttr("align", "center");
     $table2 = new HTML("table");
     $table2->addAttr("border", "0");
     $table2->addAttr("class", "blank");
     $table2->addAttr("cellspacing", "0");
     $table2->addAttr("cellpadding", "0");
     $table2->addAttr("width", "100%");
     // captions
     $tr2 = new HTML("tr");
     $showclass = "table_row_odd";
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     $td2->addAttr("align", "center");
     $td2->addAttr("width", "15");
     $b = new HTML("b");
     $b->addContent("#");
     $td2->addContent($b);
     $tr2->addContent($td2);
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     $b = new HTML("b");
     $b->addContent(_("Frage"));
     $td2->addContent($b);
     $tr2->addContent($td2);
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     if (count($questions) > 1) {
         $b = new HTML("b");
         $b->addContent(_("Position"));
         $td2->addContent($b);
     } else {
         $td2->addContent("");
     }
     $tr2->addContent($td2);
     $td2 = new HTML("td");
     $td2->addAttr("class", $showclass);
     $b = new HTML("b");
     $b->addContent(_("Löschen"));
     $td2->addContent($b);
     $tr2->addContent($td2);
     // only if template is NO_TEMPLATE_GROUP
     if ($templateID == NULL) {
         $td2 = new HTML("td");
         $td2->addAttr("class", $showclass);
         $b = new HTML("b");
         $b->addContent(_("Antworten"));
         $td2->addContent($b);
         $tr2->addContent($td2);
     }
     $table2->addContent($tr2);
     $i = 0;
     foreach ($questions as $question) {
         $tr2 = new HTML("tr");
         // brrr :)
         // extract the questionID from the command
         foreach ($_REQUEST as $key => $value) {
             if (preg_match("/template_(.*)_button?/", $key, $command)) {
                 break;
             }
         }
         if (preg_match("/(.*)_#(.*)/", $command[1], $command_parts)) {
             $questionID = $command_parts[2];
         } else {
             $questionID = Request::submitted('template_save2_button') ? "" : Request::get("template_id");
         }
         if ($question->getObjectID() == $questionID) {
             $tr2->addAttr("class", "eval_highlight");
         } else {
             $tr2->addAttr("class", $i % 2 == 1 ? "table_row_odd" : "table_row_even");
         }
         $td2 = new HTML("td");
         $td2->addAttr("align", "center");
         $font = new HTML("font");
         $font->addAttr("size", "-1");
         $font->addContent($i + 1 . ".");
         $td2->addContent($font);
         $tr2->addContent($td2);
         $td2 = new HTML("td");
         $td2->addAttr("align", "left");
         $input = new HTMLempty("input");
         $input->addAttr("type", "tex");
//.........这里部分代码省略.........
开发者ID:ratbird,项目名称:hope,代码行数:101,代码来源:EvaluationTreeEditView.class.php

示例7: _

                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="preview" style="display: none;">
        <h4><?php 
echo _("Vorschau");
?>
</h4>
        <p class="message_body"></p>
    </div>

    <div style="text-align: center;" data-dialog-button>
        <?php 
echo \Studip\Button::create(_('Abschicken'), null, array('onclick' => "STUDIP.Messages.checkAdressee();"));
?>
    </div>

</form>

<br>

<?php 
$sidebar = Sidebar::get();
$sidebar->setImage('sidebar/mail-sidebar.png');
if (false && count($tags)) {
    $folderwidget = new LinksWidget();
    $folderwidget->setTitle(_("Verwendete Tags"));
    foreach ($tags as $tag) {
        $folderwidget->addLink(ucfirst($tag), URLHelper::getURL("?", array('tag' => $tag)), null, array('class' => "tag"));
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:write.php

示例8: _

?>
>3 <?php 
echo _("Sterne");
?>
</option>
        <option value="4"<?php 
echo $review['rating'] == 4 ? " selected" : "";
?>
>4 <?php 
echo _("Sterne");
?>
</option>
        <option value="5"<?php 
echo $review['rating'] == 5 ? " selected" : "";
?>
>5 <?php 
echo _("Sterne");
?>
</option>
    </select>

    <textarea name="review"><?php 
echo htmlReady($review['review']);
?>
</textarea>
    <div data-dialog-button>
        <?php 
echo \Studip\Button::create(_("Absenden"));
?>
    </div>
</form>
开发者ID:Krassmus,项目名称:LehrMarktplatz,代码行数:31,代码来源:review.php

示例9: htmlReady

?>
<table border="0" cellspacing=0 cellpadding=0 width = "99%">
<tr><td class="table_row_even" align="center" valign="middle" ><font size="-1">
<br>
<?php 
echo htmlReady($message);
?>
<br>
<br>
<input type="HIDDEN" name="anker_target" value="search">
<input type="HIDDEN" name="view" value="<?php 
echo htmlReady($view);
?>
">
<input type="HIDDEN" name="cms_select" value="<?php 
echo htmlReady($cms_select);
?>
">
<input name="search_key" size="30" style="vertical-align:middle;font-size:9pt;" value="<?php 
echo htmlReady($search_key);
?>
">
&nbsp;
<?php 
echo Button::create(_('Suchen'));
?>
<br>
<br>
</font>
</td></tr></table>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:_searchfield.php

示例10: htmlReady

                        <li>
                            <label>
                                <input type="checkbox" name="remove_inst[]" value="<?php 
echo htmlReady($assignment['range_id']);
?>
" style="display: none;">
                                <span><?php 
echo htmlReady(Institute::find($assignment['range_id'])->name);
?>
</span>
                                <?php 
echo Assets::img("icons/16/blue/trash", array('class' => "text-bottom", 'title' => _("Zuweisung zur Einrichtung aufheben.")));
?>
                            </label>
                        </li>
                    <? endif ?>
                <? endforeach ?>
            </ul>
            <?php 
echo QuickSearch::get("add_institut_id", new SeminarSearch())->render();
?>
        <? endif ?>

    </fieldset>

    <div data-dialog-button>
        <?php 
echo \Studip\Button::create(_("Speichern"), 'questionnaire_store_relations');
?>
    </div>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:context.php

示例11: getTableRowForRootInLiteratur

 function getTableRowForRootInLiteratur()
 {
     $user_lists = $this->tree->GetListsByRange($GLOBALS['auth']->auth['uid']);
     $content .= "\n<tr><td class=\"table_row_even\" align=\"left\">";
     $content .= "\n<form name=\"userlist_form\" action=\"" . URLHelper::getLink($this->getSelf("cmd=CopyUserList")) . "\" method=\"POST\">";
     $content .= CSRFProtection::tokenTag();
     $content .= "<b>" . _("Persönliche Literaturlisten:") . "</b><br><br>\n<select name=\"user_list\" style=\"vertical-align:middle;width:70%;\">";
     if (is_array($user_lists)) {
         foreach ($user_lists as $list_id => $list_name) {
             $content .= "\n<option value=\"{$list_id}\">" . htmlReady($list_name) . "</option>";
         }
     }
     $content .= "\n</select>&nbsp;&nbsp;" . Button::create(_('Kopie erstellen'), array('title' => _('Eine Kopie der ausgewähkten Liste erstellen'))) . "</form></td></tr>";
     return $content;
 }
开发者ID:ratbird,项目名称:hope,代码行数:15,代码来源:StudipLitListViewAdmin.class.php

示例12: navigator

    function navigator()
    {
        global $cssSw, $view_mode;

        //match start_time & end_time for a whole week
        $dow = date ("w", $this->start_time);
        if (date ("w", $this->start_time) >1)
            $offset = 1 - date ("w", $this->start_time);
        if (date ("w", $this->start_time) <1)
            $offset = -6;
        $start_time = mktime (0, 0, 0, date("n",$this->start_time), date("j", $this->start_time)+$offset+($this->week_offset*7), date("Y", $this->start_time));
        $end_time = mktime (23, 59, 0, date("n",$start_time), date("j", $start_time)+6, date("Y", $start_time));

        ?>
        <table border=0 celpadding=2 cellspacing=0 width="99%" align="center">
            <form method="POST" action="<?echo URLHelper::getLink('?navigate=TRUE&quick_view=view_schedule&quick_view_mode='.$view_mode)?>">
            <?= CSRFProtection::tokenTag() ?>
            <tr>
                <td class="<? $cssSw->switchClass(); echo $cssSw->getClass() ?>" width="4%">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="96%" colspan="2"><font size=-1><b><?=_("Zeitraum:")?></b></font>
                </td>
            </tr>
            <tr>
                <td class="<? echo $cssSw->getClass() ?>" width="4%" rowspan="2">&nbsp;
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="30%" rowspan="2" valign="middle"><font size=-1>
                    <font size=-1>Beginn:
                    <input type="text" id="startTime" name="startTime" size="8" value="<?if($start_time) : ?><?=date('j.n.Y', $start_time)?><?endif;?>">
                    <script>
                        jQuery("#startTime").datepicker();
                    </script>
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<?= Button::create(_('Auswählen'), 'jump') ?>
                </td>
                <td class="<? echo $cssSw->getClass() ?>" width="66%" valign="bottom"><font size=-1>
                    <input type="text" name="schedule_length_factor" size=2 maxlength=2 / value="<? if (!$this->length_factor) echo "1"; else echo $this->length_factor; ?>">
                    &nbsp; <select name="schedule_length_unit">
                        <option <? if ($this->length_unit  == "d") echo "selected" ?> value="d"><?=_("Tag(e)")?></option>
                        <option <? if ($this->length_unit  == "w") echo "selected" ?> value="w"><?=_("Woche(n)")?></option>
                        <option <? if ($this->length_unit  == "m") echo "selected" ?> value="m"><?=_("Monat(e)")?></option>
                        <option <? if ($this->length_unit  == "y") echo "selected" ?> value="y"><?=_("Jahre(e)")?></option>
                    </select>
                    <?= Button::create(_('Als Liste ausgeben'), 'start_list') ?>
                </td>
            </tr>
            <tr>
                <td class="<? echo $cssSw->getClass() ?>" width="66%" valign="bottom">
                    <i>oder</i>
                    <?= Button::create(_('Eine Woche grafisch ausgeben'), 'start_graphical') ?>
                </td>
            </tr>
        </table>
    <?
    }
开发者ID:ratbird,项目名称:hope,代码行数:54,代码来源:ShowSchedules.class.php

示例13: htmlReady

                        <option value="<?php 
echo $user->id;
?>
"><?php 
echo htmlReady($user->nachname . ', ' . $user->vorname);
?>
 - <?php 
echo htmlReady($user->perms);
?>
 (<?php 
echo htmlReady($user->username);
?>
)</option>
                    <? endforeach; ?>
                </select>
                </label>
            </div><br>
        </div>
    </div>
    <br>
    <?php 
echo $additionHTML;
?>
    <?php 
echo \Studip\Button::create(_('Speichern'), 'save');
?>
    <?php 
echo \Studip\Button::create(_('Abbrechen'), 'abort');
?>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:30,代码来源:no_js_form.php

示例14: testCreateWithInsaneArguments

 function testCreateWithInsaneArguments()
 {
     $this->assertEquals('<button type="submit" class="button" mad="&lt;S&gt;tu&quot;ff" name="m&amp;m">&gt;ok&lt;</button>', '' . Button::create('>ok<', 'm&m', array('mad' => '<S>tu"ff')));
 }
开发者ID:ratbird,项目名称:hope,代码行数:4,代码来源:ButtonTest.php

示例15: in_array

?>
" <?php 
echo in_array($id, $selected_inst) ? 'selected' : '';
?>
>
                        <?php 
echo htmlReady($child['name']);
?>
                    </option>
                <? endforeach ?>
            <? endif ?>
        <? endforeach ?>
    </select>
    <p>
        <?php 
echo Button::create(_('Übernehmen'), 'save', array('title' => _('Einstellungen speichern')));
?>
        &nbsp;
        <?php 
echo LinkButton::create('<< ' . _("Zurück"), $controller->url_for('admin/plugin'), array('title' => _('Zurück zur Plugin-Verwaltung')));
?>
    </p>
</form>

<?
$infobox_content = array(
    array(
        'kategorie' => _('Aktionen:'),
        'eintrag'   => array(
            array(
                'icon' => Icon::create('schedule', 'clickable'),
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:default_activation.php


注:本文中的Studip\Button::create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。