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


PHP LinkButton::createCancel方法代码示例

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


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

示例1: sprintf

                $_msg = "msg§" . $_msg;
            }
            $the_tree->tree->init();
        }
    }
}
if ($the_tree->mode == "MoveItem" || $the_tree->mode == "CopyItem") {
    if ($_msg) {
        $_msg .= "§";
    }
    if ($the_tree->mode == "MoveItem") {
        $text = _("Der Verschiebemodus ist aktiviert. Bitte wählen Sie ein Einfügesymbol %s aus, um das Element <b>%s</b> an diese Stelle zu verschieben.%s");
    } else {
        $text = _("Der Kopiermodus ist aktiviert. Bitte wählen Sie ein Einfügesymbol %s aus, um das Element <b>%s</b> an diese Stelle zu kopieren.%s");
    }
    $_msg .= "info§" . sprintf($text, Icon::create('arr_2right', 'sort', ['title' => _('Einfügesymbol')])->asImg(), htmlReady($the_tree->tree->tree_data[$the_tree->move_item_id]['name']), "<div align=\"right\">" . LinkButton::createCancel(_('Abbrechen'), $the_tree->getSelf("cmd=Cancel&item_id={$the_tree->move_item_id}"), array('title' => _("Verschieben / Kopieren abbrechen"))) . "</div>");
}
?>

<table width="100%" border="0" cellpadding="2" cellspacing="0">
    <tr>
    <td class="blank" width="75%" align="left" valign="top">
    <?
if ($_msg)  {
    echo "\n<table width=\"99%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\">";
    parse_msg ($_msg,"§","blank",1,false);
    echo "\n</table>";
} else {
    echo "<br><br>";
}
$the_tree->showSemTree();
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:admin_sem_tree.php

示例2: createFormNew

 /**
 * creates the html for the create new group options
 *
 * @access   private
 * @param    string $show
 * @return   string the html
 */
 function createFormNew($show = ARRANGMENT_BLOCK)
 {
     $table = new HTML("table");
     $table->addAttr("width", "100%");
     $table->addAttr("class", "blank");
     $table->addAttr("border", "0");
     $table->addAttr("cellpadding", "6");
     $table->addAttr("cellspacing", "0");
     $table->addAttr("div", "left");
     $tr = new HTML("tr");
     $td = new HTML("td");
     $td->addAttr("class", "blank");
     $td->addAttr("align", "center");
     $td->addContent(new HTMLempty("br"));
     #   $tr->addContent ($td);
     #   $table->addContent ($tr);
     $tr = new HTML("tr");
     $td = new HTML("td");
     $td->addAttr("class", "content_body");
     #   $td->addAttr ("class","steelgrau");
     $td->addAttr("align", "center");
     $img = new HTMLempty("img");
     $img->addAttr("src", Assets::image_path("blank.gif"));
     $img->addAttr("width", "30");
     $img->addAttr("height", "1");
     $img->addAttr("alt", "");
     #   $td->addContent ($img);
     #   $td->addContent (new HTMLempty ("br"));
     $group_selection = _("Gruppierungsblock") . "&nbsp;" . Button::create(_('Erstellen'), 'cmd[AddGroup]', array('title' => _('Einen neuen Gruppierungsblock erstellen')));
     $qgroup_selection = _("Fragenblock mit") . "&nbsp;" . $this->createTemplateSelection() . Button::create(_('Erstellen'), 'cmd[AddQGroup]', array('title' => _('Einen neuen Fragenblock erstellen')));
     $seperator = "&nbsp;|&nbsp;";
     switch ($show) {
         case ARRANGMENT_BLOCK:
             $td->addHTMLContent($group_selection);
             break;
         case QUESTION_BLOCK:
             $td->addHTMLContent($qgroup_selection);
             break;
         case "both":
             $td->addHTMLContent($group_selection . $seperator . $qgroup_selection);
             break;
     }
     // abort-button
     $child = $this->tree->eval->getNextChild();
     $number_of_childs = $this->tree->eval->getNumberChildren();
     if ($number_of_childs == 1 && $this->itemID == ROOT_BLOCK && $this->tree->eval->getTitle() == _("Neue Evaluation") && $this->tree->eval->getText() == "" && $child && $child->getTitle() == _("Erster Gruppierungsblock") && $child->getChildren() == NULL && $child->getText == "") {
         $cancel = $seperator . "&nbsp;";
         $a_content = LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL(EVAL_FILE_ADMIN . "?evalID=" . $this->tree->eval->getObjectID() . "&abort_creation_button=1"), array('title' => _("Erstellung einer Evaluation abbrechen")));
         $cancel .= $a_content;
         $td->addHTMLContent($cancel);
     }
     $tr->addContent($td);
     $table->addContent($tr);
     return $table->createContent();
 }
开发者ID:ratbird,项目名称:hope,代码行数:62,代码来源:EvaluationTreeEditView.class.php

示例3: if

            <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>
<?
$sidebar = Sidebar::Get();
$sidebar->setTitle(htmlReady($resObject->getName()));
$action = new ActionsWidget();
$action->addLink(_('Ressourcensuche'), URLHelper::getLink('resources.php?view=search&quick_view_mode=' . $view_mode));
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:show_properties_forms.php

示例4: sprintf

 &crarr;</option>
                        <? endforeach?>
                    <? endif ?>
                </select>
            </td>
        </tr>
        
        <tr>
            <td style="width: 30%"><?php 
echo sprintf(_('<strong>%s</strong> in die Veranstaltung eintragen'), htmlReady($decoratedStatusGroups['autor']));
?>
</td>
            <td style="width: 50%">
                <textarea name="csv_import" rows="6" cols="50"></textarea>
            </td>
            <td style="width: 20%; text-align: right">
                <?php 
echo Button::createAccept(_('Eintragen'), 'add_member_list', array('title' => sprintf(_("als %s eintragen"), htmlReady($decoratedStatusGroups['autor']))));
?>
            </td>
        </tr>
    </tbody>
</table>
</form>

<div style="text-align: right">
    <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('course/members/index'));
?>
</div>
开发者ID:ratbird,项目名称:hope,代码行数:30,代码来源:add_member.php

示例5: _

echo _("Name des Studienfaches:");
?>
 </td>
            <td><input type="text" name="professionname" size="60" maxlength="254" value="<?php 
echo htmlReady($edit['name']);
?>
"></td>
        </tr>
        <tr class="table_row_even">
            <td><?php 
echo _("Beschreibung:");
?>
 </td>
            <td><textarea cols="57" rows="5" name="description"><?php 
echo htmlReady($edit['beschreibung']);
?>
</textarea></td>
        </tr>
        <tr class="table_footer">
            <td></td>
            <td>
                 <?php 
echo Button::createAccept(_('Übernehmen'), 'uebernehmen', array('title' => _('Änderungen übernehmen')));
?>
                 <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/studycourse/profession'), array('title' => _('Zurück zur Übersicht')));
?>
            </td>
        </tr>
    </table>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:edit_profession.php

示例6: editSubmit

    function editSubmit ($module_name, $config_id, $element_name = "", $hidden = NULL) {
        $this->css->resetClass();
        $this->css->switchClass();

        $out = "<tr><td align=\"center\" colspan=\"2\" nowrap=\"nowrap\"";
        $out .= $this->css->getFullClass() . ">&nbsp;";
        $out .= Button::createAccept(_("Übernehmen"), "submit"); 
        $out .= "&nbsp; &nbsp; &nbsp;";
        $out .= LinkButton::createCancel(_("Abbrechen"), URLHelper::getURL('?list=TRUE'));
        $out .= "<input type=\"hidden\" name=\"config_id\" value=\"$config_id\">";
        $out .= "<input type=\"hidden\" name=\"mod\" value=\"$module_name\">";
        if ($element_name) {
            $out .= "<input type=\"hidden\" name=\"edit\" value=\"$element_name\">";
        }
        if (!is_null($hidden)) {
            foreach ($hidden as $name => $value) {
                $out .= "<input type=\"hidden\" name=\"$name\" value=\"$value\">";
            }
        }
        $out .= "</td></tr>";

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

示例7: htmlReady

echo htmlReady($scm->content);
?>
</textarea>
                </td>
            </tr>
        </tbody>
        <tfoot class="table_footer">
            <tr>
                <td colspan="2" data-dialog-button>
                    <?php 
echo Button::createAccept(_('Speichern'), 'submit');
?>
                <? if ($first_entry): ?>
                    <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getLink('seminar_main.php'));
?>
                <? else: ?>
                    <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('show/edit' . $scm->id));
?>
                <? endif; ?>
                </td>
            </tr>
        </tfoot>

    </table>
</form>

<?php 
$sidebar = Sidebar::get();
$sidebar->setImage(Assets::image_path("sidebar/info-sidebar.png"));
开发者ID:anantace,项目名称:SCMTabs,代码行数:31,代码来源:edit.php

示例8: htmlReady

?>
 </td>
                    <td>
                        <input type="email" name="email" value="<?php 
echo htmlReady($email);
?>
" size="20" maxlength="63">
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <?php 
echo Button::createAccept(_('Abschicken'));
?>
                        <?php 
echo LinkButton::createCancel(_('Abbrechen'), 'index.php?cancel_login=1');
?>
                        <br>
                    </td>
                </tr>
            </table>
        </form>
        <?else:?>
        </div>
        <?endif;?>
    </div>
    </td>
</tr>
</table>
</div>
<?if ($step == 1):?>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:request_password.php

示例9: compact

?>
                    </td>
                </tr>
            <? endforeach; ?>
            </tbody>
            <tfoot>
                <tr>
                    <td class="blank" align="center" colspan="2">
                        <br>

                        <?php 
echo Button::createAccept(_('Speichern'), 'speichern');
?>
                        &nbsp;
                        <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('', compact('range_id')));
?>
                    </td>
                </tr>
            </tfoot>
        </table>
        <input type="hidden" name="cmd" value="addRole">
        <input type="hidden" name="role_id" value="<?php 
echo $role->getId();
?>
">
        <input type="hidden" name="range_id" value="<?php 
echo $range_id;
?>
">
        </form>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:new_role.php

示例10: _

        <label>
            <?php 
echo _('Datenfeldtyp:');
?>

            <select name="datafield_typ">
            <? foreach ($allclasses as $key => $class): ?>
                 <option value="<?php 
echo $key;
?>
" <? if ($key === $class_filter) echo 'selected'; ?>>
                     <?php 
echo htmlReady($class);
?>
                 </option>
            <? endforeach; ?>
            </select>
        </label>
    </fieldset>

    <footer data-dialog-button>
        <?php 
echo Button::create(_('Auswählen'), 'auswaehlen', array('title' => _('Datenfeld auswählen')));
?>
        <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/datafields', compact('class_filter')));
?>
    </footer>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:29,代码来源:type_select.php

示例11: array

</h2>
<? endif ?>
<form method="post" name="room_request"
      action="<?php 
echo $this->controller->link_for('edit/' . $course_id, $params);
?>
"
    <?php 
echo Request::isXhr() ? 'data-dialog="size=big"' : '';
?>
 class="studip-form">
    <?php 
echo CSRFProtection::tokenTag();
?>
    <?php 
echo $this->render_partial('course/room_requests/_form.php');
?>

    <div data-dialog-button>
        <?php 
echo Button::createAccept(_('Speichern und zurück zur Übersicht'), 'save_close', array('title' => _('Speichern und zurück zur Übersicht')));
?>
        <?php 
echo Button::create(_('Übernehmen'), 'save', array('title' => _('Änderungen speichern')));
?>
        <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->link_for('index/' . $course_id), array('title' => _('Abbrechen')));
?>
    </div>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:30,代码来源:edit.php

示例12: _

?>
</td>
            </tr>
            <tr class="table_row_even">
                <td><?php 
echo _('Geändert');
?>
</td>
                <td><?php 
echo date('d.m.Y H:i:s', $smiley->chdate);
?>
</td>
            </tr>
        </tbody>
        <tfoot data-dialog-button>
            <tr>
                <td colspan="2">
                    <?php 
echo Button::createAccept(_('Speichern'), 'edit');
?>
                    <?php 
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/smileys?view=' . $view));
?>
                </td>
            </tr>
        </tfoot>
    </table>

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

示例13: _

    <p>
        <?php 
echo Button::createAccept(_('Absenden'));
?>
        <span class="quiet">
            <?php 
echo _("oder");
?>
            <? if ($this->studygroup_mode) : ?>
                <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('dispatch.php/course/studygroup/edit/' . $course_id));
?>
            <? else : ?>
                <?php 
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('dispatch.php/course/basicdata/view/' . $course_id));
?>
            <? endif ?>
        </span>
    </p>
</form>

<?php 
$sidebar = Sidebar::get();
$sidebar->setImage('sidebar/admin-sidebar.png');
if ($avatar->is_customized()) {
    $actions = new ActionsWidget();
    $actions->addLink(_('Bild löschen'), $controller->link_for('course/avatar/delete', $course_id), Icon::create('trash', 'info'), array('onclick' => sprintf('return confirm(\'%s\');', _('Wirklich löschen?'))))->asDialog(false);
    $sidebar->addWidget($actions);
}
if ($adminList) {
开发者ID:ratbird,项目名称:hope,代码行数:30,代码来源:update.php

示例14: array

                    'core': {
                        'animation': 100,
                        'open_parents': true
                    },
                    'checkbox': {
                        'real_checkboxes': true,
                        'selected_parent_open': true,
                        'override_ui': false
                    },
                    'themes': {
                        'icons': false
                    },
                    'plugins': [ 'html_data', 'themes', 'checkbox', 'ui' ]
                });
            });
            //-->
        </script>
    </div>
    <br/>
    <div class="submit_wrapper">
        <?php 
echo CSRFProtection::tokenTag();
?>
        <?php 
echo Button::createAccept(_('Speichern'), 'submit');
?>
        <?php 
echo LinkButton::createCancel(_('Abbrechen'), '', array('rel' => 'close'));
?>
    </div>
</form>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:check_activation.php

示例15: createStopButton

 function createStopButton($eval)
 {
     $button = LinkButton::createCancel(_('Stop'), URLHelper::getURL(EVAL_FILE_ADMIN . "?evalAction=stop&evalID=" . $eval->getObjectID()), array('title' => _('Evaluation stoppen.')));
     return $button;
 }
开发者ID:ratbird,项目名称:hope,代码行数:5,代码来源:evaluation_show.lib.php


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