コード例 #1
0
        $alignmentleft = 'left';
        $alignmentright = 'right';
    }
    ///get the selected resource
    echo "<tr valign=\"top\">\n";
    echo "<td align=\"{$alignmentright}\"><b>" . get_string("name") . ": </b></td>\n";
    echo "<td align=\"{$alignmentleft}\"><input type=\"text\" name=\"name\" size=\"30\" value={$form->name}></td>";
    echo "</tr>";
    echo "<tr valign=\"top\">\n";
    echo "  <td align=\"{$alignmentright}\"><b>" . get_string("description") . ": </b></td>\n";
    echo "<td><textarea name=\"description\" rows=\"3\" cols=\"75\">" . $form->description . "</textarea>\n";
    echo "  </td></tr>\n";
    echo "<tr valign =\"top\">\n";
    echo "<td align=\"{$alignmentright}\"><b>" . get_string("url", "webquest") . " :</b></td>\n";
    echo "<td align=\"{$alignmentleft}\"><input type=\"text\" name=\"path\" size=\"30\" value=\"{$form->path}\" alt=\"reference\" style=\"text-align:left;direction:ltr;\"/><br />";
    button_to_popup_window("/files/index.php?id={$cm->course}&amp;choose=form.path", "coursefiles", $strchooseafile, 500, 750, $strchooseafile);
    echo "<input type=\"button\" name=\"searchbutton\" value=\"{$strsearch} ...\" " . "onclick=\"return window.open('{$CFG->resource_websearch}', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');\" />\n</td>";
    echo "</tr>";
    echo "<tr valign=\"top\">\n";
    echo "  <td colspan=\"2\" >&nbsp;</td>\n";
    echo "</tr>";
    echo "<td>";
    echo "</td>";
    ?>
        </table><br />
        <input type="submit" value="<?php 
    print_string("savechanges");
    ?>
" />
    <input type="submit" name="cancel" value="<?php 
    print_string("cancel");
コード例 #2
0
ファイル: import.php プロジェクト: kai707/ITSA-backup
echo get_string('append_new_items', 'feedback') . ' (' . get_string('oldvaluespreserved', 'feedback') . ')';
?>
<br />
          <table cellpadding="5">
                <tr>
                     <td align="right"><?php 
print_string('file', 'feedback');
?>
:</td>
                     <td><input type="text" name="choosefile" size="50" /></td>
                </tr>

                <tr>
                     <td>&nbsp;</td>
                     <td><?php 
button_to_popup_window("/files/index.php?id={$course->id}&amp;choose=form.choosefile", "coursefiles", get_string('choosefile', 'feedback'), 500, 750, get_string('choosefile', 'feedback'));
?>
                          <input type="submit" name="save" value="<?php 
print_string('importfromthisfile', 'feedback');
?>
" />
                    </td>
                </tr>
          </table>
          <?php 
print_box_end();
?>
     </form>

     <?php 
echo '<div align="center">';
コード例 #3
0
	<input type="hidden" name="id_podcast"  value="<?php 
    p($podcast->id);
    ?>
" />
	<input type="hidden" name="tab"         value="view" />
	<input type="hidden" name="action"      value="create" />
	<input type="hidden" name="pubdate"     value="<?php 
    echo podcast_date_format();
    ?>
" />
	<input type="hidden" name="date_html"      value="<?php 
    echo podcast_date_format_html($podcast->lang);
    ?>
" />
	<input type="hidden" name="duration"    value="00:00:00" />
	<input type="hidden" name="length"      value="000000" />
	<input type="submit" value="<?php 
    print_string('add_item', "podcast");
    ?>
" />
</center>
</form>
<?php 
}
// Editer un article
function podcast_edit_item($podcast, $id)
{
    global $CFG;
    global $USER;
    if (!($cm = get_record("course_modules", "id", $id))) {
        error("Course Module ID was incorrect");
    }
    get_item_podcast($podcast, $id);
}
// Afficher la liste des articles e editer
function get_item_podcast($podcast, $id)
{
    global $CFG;
    $browse = get_string('browse', 'podcast');
    $usehtmleditor = can_use_html_editor();
    if ($items = get_records("podcast_structure", "id_podcast", $podcast->id)) {
        foreach ($items as $item) {
            ?>
			<form name="form<?php 
            echo $item->id;
            ?>
" method="post" action="view.php">
			<center>
			<table cellpadding="5">
			<tr>
				<td align="right" valign="top"><b><?php 
            print_string("title", "podcast");
            ?>
</b></td>
				<td align="left"><input type="text" name="title" size="30" value="<?php 
            p(stripslashes($item->title));
            ?>
" />
				<a href="?id=<?php 
            echo $id;
            ?>
&amp;tab=edit&amp;action=delete&amp;id_item=<?php 
            echo $item->id;
            ?>
" style="color:red;font-size:0.8em;font-weight:bold;">
					<?php 
            print_string('delete', "podcast");
            ?>
コード例 #4
0
 /**
  * Make a link to the review page for an attempt.
  *
  * @param string $linktext the desired link text.
  * @param integer $attemptid the attempt id.
  * @return string HTML for the link.
  */
 public function make_review_link($linktext, $attemptid)
 {
     return button_to_popup_window($this->_quizobj->review_url($attemptid), 'quizpopup', $linktext, '', '', '', $this->windowoptions, true);
 }
コード例 #5
0
ファイル: import.php プロジェクト: veritech/pare-project
            <?php 
echo $txt->importfilearea;
?>
            <table cellpadding="5">
                <tr>
                    <td align="right"><?php 
echo $txt->file;
?>
:</td>
                    <td><input type="text" name="choosefile" size="50" /></td>
                </tr>

                <tr>
                    <td>&nbsp;</td>
                    <td><?php 
button_to_popup_window("/files/index.php?id={$course->id}&amp;choose=form.choosefile", "coursefiles", $txt->choosefile, 500, 750, $txt->choosefile);
?>
                        <input type="submit" name="save" value="<?php 
echo $txt->importfromthisfile;
?>
" /></td>
                </tr>
            </table>
            <?php 
print_box_end();
?>
        </fieldset>
    </form>

    <?php 
print_footer($course);
コード例 #6
0
ファイル: editpage.php プロジェクト: nadavkav/MoodleTAO
        <div class="tab-page" id="tabPage2">
        <p class="tab"><?php 
print_string('linkto', 'cms');
?>
</p>
        <script type="text/javascript">
        //<![CDATA[
        tp1.addTabPage( document.getElementById( "tabPage2" ) );
        //]]></script>
        <input type="text" name="url" size="50" value="<?php 
p($form->url);
?>
" /> <?php 
$url = '/cms/activities.php?course=' . $course->id . '&amp;sesskey=' . $USER->sesskey;
$stractivities = get_string('activities');
button_to_popup_window($url, $stractivities, $stractivities, 400, 500, $stractivities, "none");
?>
        <br />
        <?php 
print_string('pagewindow', 'resource');
?>
        <input type="radio" name="target" value="_top" <?php 
print $form->target == '_top' ? 'checked="checked" ' : '';
?>
/>
        <?php 
print_string('newwindow', 'resource');
?>
        <input type="radio" name="target" value="_blank" <?php 
print $form->target == '_blank' ? 'checked="checked" ' : '';
?>
コード例 #7
0
 function output_html($data, $query = '')
 {
     $buttonname = get_string('configurecategoryfilter', 'repository_alfresco');
     $button = button_to_popup_window('/file/repository/alfresco/config-categories.php', 'alfrescoconfigcategories', $buttonname, 480, 640, $buttonname, 'scrollbars=yes,resizable=yes', true);
     return format_admin_setting($this, $this->visiblename, $button, $this->description, true, '', NULL, $query);
 }
コード例 #8
0
echo '</div>' . "\n";
echo '</div>' . "\n";
echo '<div class="aconmeetinforow">' . "\n";
echo '<div class="aconlabeltitle" id="aconmeetsummarytitle">' . "\n";
echo '<label for="lblmeetingsummarytitle">' . get_string('meetingintro', 'adobeconnect') . ':</label>' . "\n";
echo '</div>' . "\n";
echo '<div class="aconlabeltext" id="aconmeetsummarytxt">' . "\n";
echo '<label for="lblmeetingsummary">' . format_string($adobeconnect->intro) . '</label><br />' . "\n";
echo '</div>' . "\n";
echo '</div>' . "\n";
echo '</fieldset>' . "\n";
echo '</div>' . "\n";
echo '<br />';
echo '<div class="aconbtnrow">' . "\n";
echo '<div class="aconbtnjoin">' . "\n";
echo button_to_popup_window('/mod/adobeconnect/join.php?id=' . $id . '&amp;sesskey=' . $sesskey . '&amp;groupid=' . $groupid, 'btnname', get_string('joinmeeting', 'adobeconnect'), 900, 900, null, null, true);
echo '</div>' . "\n";
if (has_capability('mod/adobeconnect:meetingpresenter', $context, $usrobj->id) or has_capability('mod/adobeconnect:meetinghost', $context, $usrobj->id)) {
    echo '<div class="aconbtnroles">' . "\n";
    echo '<input type="submit" name="participants" value="' . get_string('selectparticipants', 'adobeconnect') . '">';
    echo '</div>' . "\n";
}
echo '</div>' . "\n";
echo '<input type="hidden" name="id" value="' . $id . '">' . "\n";
echo '<input type="hidden" name="group" value="' . $groupid . '">' . "\n";
echo '<input type="hidden" name="sesskey" value="' . $sesskey . '">' . "\n";
echo '</form>' . "\n";
echo '<br />';
$showrecordings = false;
// Check if meeting is private, if so check the user's capability.  If public show recorded meetings
if (!$adobeconnect->meetingpublic) {