本文整理匯總了PHP中Studip\Button::createAccept方法的典型用法代碼示例。如果您正苦於以下問題:PHP Button::createAccept方法的具體用法?PHP Button::createAccept怎麽用?PHP Button::createAccept使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Studip\Button
的用法示例。
在下文中一共展示了Button::createAccept方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getNewAccountLink
/**
* get link to create new account
*
* returns link to create new user-account
* @access public
* @return string html-code
*/
function getNewAccountLink()
{
global $connected_cms, $cms_select, $current_module;
$output .= "<form method=\"POST\" action=\"" . URLHelper::getLink() . "\">\n";
$output .= CSRFProtection::tokenTag();
$output .= "<input type=\"HIDDEN\" name=\"view\" value=\"" . Request::option('view') . "\">\n";
$output .= "<input type=\"HIDDEN\" name=\"ref_id\" value=\"" . htmlReady($connected_cms[$this->cms_type]->content_module[$current_module]->getId()) . "\">\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=\"search_key\" value=\"" . htmlReady(Request::get('search_key')) . "\">\n";
$output .= "<input type=\"HIDDEN\" name=\"cms_select\" value=\"" . htmlReady($cms_select) . "\">\n";
$output .= "<input type=\"HIDDEN\" name=\"new_account_cms\" value=\"" . htmlReady($this->cms_type) . "\">\n";
$output .= "<input type=\"HIDDEN\" name=\"new_account_step\" value=\"0\">\n";
$output .= Button::createAccept(_('Starten'), 'start');
$output .= "</form>";
return $output;
}
示例2: createTemplateFormFree
/**
* 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%");
//.........這裏部分代碼省略.........
示例3: _
echo TextHelper::cycle('table_row_even', 'table_row_odd');
?>
">
<td><?php
echo _('IP Adresse');
?>
</td>
<td><input type="text" name="test_ip" size="50" required value="<?php
echo htmlReady(Request::get("test_ip"));
?>
"></td>
</tr>
<tr>
<td style="text-align:center" colspan="2">
<?php
echo Button::createAccept(_('Abschicken'), 'ok', array('title' => _('Test starten')));
?>
<?php
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/webservice_access'), array('title' => _('Test abbrechen')));
?>
</a>
</td>
</tr>
</table>
</form>
<?
$sidebar = Sidebar::Get();
$sidebar->setImage('sidebar/admin-sidebar.png');
$sidebar->setTitle(_('Webservices'));
示例4: _
</tr>
<tr>
<td colspan="3">
<label>
<?php
echo _('Klicken Sie auf "Durchsuchen", um eine Datei auszuwählen');
?>
<input type="file" name="importfile">
</label>
</td>
</tr>
</table>
<?php
echo CSRFProtection::tokenTag();
?>
<input type="hidden" name="studip_ticket" value="<?php
echo get_ticket();
?>
">
<div style="text-align: center; clear: both" data-dialog-button>
<?php
echo Button::createAccept(_('Termine importieren'), 'import', array('title' => _('Termine importieren')));
?>
<? if (!Request::isXhr()) : ?>
<?php
echo LinkButton::create(_('Abbrechen'), $controller->url_for('calendar/single/' . $last_view));
?>
<? endif; ?>
</div>
</form>
示例5: htmlReady
<a class="helplink" href=" <?php
echo htmlReady($info['helplink']);
?>
">...mehr</a>
<? endif ?>
</div>
</div>
<? } ?>
</td>
</tr>
<? }
} ?>
</tbody>
<tfoot>
<tr>
<td colspan="3">
<?php
echo Studip\Button::createAccept(_('Übernehmen'), 'submit');
?>
</td>
</tr>
</tfoot>
</table>
</form>
示例6: _
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>
示例7: parse_msg
echo parse_msg($msg);
echo "</td></tr>";
if ($EXTERN_SRI_ENABLE_BY_ROOT && $perm->have_perm('root')) {
echo "<tr><td class=\"blank\">\n";
echo '<form method="post" action="' . URLHelper::getLink('?com=enable_sri') . '">';
echo CSRFProtection::tokenTag();
echo '<blockquote><font size="2">';
echo _("SRI-Schnittstelle freigeben");
echo ' <input type="checkbox" name="sri_enable" value="1"';
if (sri_is_enabled($range_id)) {
echo ' checked="checked"';
}
echo '>';
echo Button::createAccept();
echo "</font></blockquote></form>\n</td></tr>\n";
} else {
echo "<tr><td class=\"blank\"> </td></tr>\n";
}
echo "<tr><td class=\"blank\">\n";
$configurations = ExternConfig::GetAllConfigurations($range_id);
$module_types_ordered = ExternModule::GetOrderedModuleTypes();
$choose_module_form = '';
// remove global configuration
array_shift($module_types_ordered);
foreach ($module_types_ordered as $i) {
if ((sizeof($configurations[$GLOBALS['EXTERN_MODULE_TYPES'][$i]['module']]) < $EXTERN_MAX_CONFIGURATIONS)
示例8: sprintf
↵</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>
示例9: _
<label for="content"><?php
echo _('Seiteninhalt');
?>
</label><br>
<textarea style="width: 90%;height: 15em;" name="content" id="content" class="add_toolbar wysiwyg"><?php
echo htmlReady($content);
?>
</textarea><br>
<input type="hidden" name="detail_id" value="<?php
echo $currentdetail;
?>
">
<? endif; ?>
<div data-dialog-button>
<?php
echo Studip\Button::createAccept(_('Abschicken'));
?>
<?php
echo Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('siteinfo/show/' . $currentrubric . '/' . $currentdetail));
?>
</div>
</form>
<? if (!$edit_rubric): ?>
<?php
echo $this->render_partial('siteinfo/help.php');
?>
<? endif; ?>
示例10: _
echo _("1. Klicken Sie auf <b>'Durchsuchen...'</b>, um eine Datei auszuwählen.");
?>
</div>
<?php
echo _("Dateipfad:");
?>
<br>
<input name="the_file" type="file" style="width: 70%"><br>
<div width="100%" class="content_seperator" style="padding : 2px; margin: 10px 0px 10px 0px">
<?php
echo _("2. Klicken Sie auf <b>'absenden'</b>, um die Datei hochzuladen.");
?>
</div>
<?php
echo Button::createAccept(_('Absenden'), array('onClick' => 'return STUDIP.OldUpload.upload_start(jQuery(this).closest(\'form\'))'));
?>
<?php
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('?cancel_x=true'));
?>
<input type="hidden" name="com" value="do_upload_config">
<input type="hidden" name="check_module" value="<?php
echo $module;
?>
">
<input type="hidden" name="config_id" value="<?php
echo $config_id;
?>
">
</form>
示例11: htmlReady
<? endif?>
<option value="<?php
echo $csv_found['username'];
?>
"><?php
echo htmlReady(my_substr($csv_found['fullname'], 0, 50));
?>
(<?php
echo $csv_found['username'];
?>
) - <?php
echo $csv_found['perms'];
?>
</option>
<? endforeach ?>
</select>
</td>
</tr>
<? endforeach ?>
</tbody>
<tfoot>
<tr>
<td colspan="2" class="printhead" style="text-align: center">
<?php
echo Button::createAccept(_('Eintragen'));
?>
</td>
</tr>
</tfoot>
</table>
</form>
示例12: htmlReady
</td>
</tr>
</table>
<br>
<!-- Title -->
<table class="default">
<tr>
<th colspan="2"> <b><?= _("Nutzungsbedingugen") ?></b> </th>
</tr>
<tr>
<td colspan="2">
<?= _("Geben Sie hier Nutzungsbedingungen für die Studiengruppen ein. ".
"Diese müssen akzeptiert werden, bevor eine Studiengruppe angelegt werden kann.") ?>
</td>
</tr>
<tr>
<td colspan="2" class="blank">
<br>
<textarea name="terms" style="width: 90%" rows="10" style='align:middle;'><?= htmlReady($terms) ?></textarea>
<br>
</td>
</tr>
</table>
<p style="text-align: center">
<br>
<?= Button::createAccept(_("Speichern"), 'speichern') ?>
</p>
</form>
示例13: if
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
</div>
<div class="news_dialog_buttons">
<? if ($news["mkdate"]) : ?>
<?php
echo Button::createAccept(_('Änderungen speichern'), 'save_news');
?>
<? else : ?>
<?php
echo Button::createAccept(_('Ankündigung erstellen'), 'save_news');
?>
<? endif ?>
<? if (Request::isXhr()) : ?>
<?php
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL(''), array('rel' => 'close_dialog'));
?>
<? endif ?>
</div>
</form>
<script>
jQuery('.news_prevent_submit').keydown(function(event) {
if (event.which === 13) {
event.preventDefault();
}
});
示例14: _
</option>
<option value="activate"><?php
echo _('Aktivieren');
?>
</option>
<option value="deactivate"><?php
echo _('Deaktivieren');
?>
</option>
<option value="delete"><?php
echo _('Löschen');
?>
</option>
</select>
<?php
echo Button::createAccept(_('Ausführen'), 'bulk');
?>
</td>
<td colspan="3" class="printhead" style="text-align: right; vertical-align: middle;">
<?
$pagination = $GLOBALS['template_factory']->open('shared/pagechooser');
$pagination->set_attributes(array(
'perPage' => $max_per_page,
'num_postings' => $total,
'page' => $page,
'pagelink' => $controller->url_for('admin/cronjobs/tasks/index/%u')
));
echo $pagination->render();
?>
</td>
</tr>
示例15: _
<input type="checkbox" name="active" value="1" <? if ($config['API_ENABLED']) echo 'checked'; ?>>
<?php
echo _('REST-API aktiviert');
?>
</label>
</div>
<label class="caption" for="auth"><?php
echo _('Standard-Authentifizierung beim Login');
?>
<select name="auth" id="auth">
<? foreach ($GLOBALS['STUDIP_AUTH_PLUGIN'] as $plugin): ?>
<option <? if ($config['API_OAUTH_AUTH_PLUGIN'] === $plugin) echo 'selected'; ?>>
<?php
echo $plugin;
?>
</option>
<? endforeach; ?>
</select>
</label>
</fieldset>
<div class="submit_wrapper">
<?php
echo Button::createAccept(_('Speichern'));
?>
<?php
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/api'));
?>
</div>
</form>