コード例 #1
0
ファイル: send_message.php プロジェクト: vicentborja/ATutor
">*</span><label for="subject"><?php 
echo _AT('subject');
?>
</label><br />
		<input type="text" name="subject" id="subject" value="<?php 
if ($subject != '' && $_POST['subject'] == '') {
    if ($_GET['reply'] && !($substr($subject, 0, 2) == _AT('re'))) {
        $subject = _AT('re') . ' : ' . $subject;
    } else {
        if ($_GET['forward'] && !($substr($subject, 0, 2) == _AT('fwd'))) {
            $subject = _AT('fwd') . ' : ' . $subject;
        }
    }
    echo ContentManager::cleanOutput($subject);
} else {
    echo ContentManager::cleanOutput($_POST['subject']);
}
?>
" size="40" maxlength="100" />
	</div>

	<div class="row">
		<span class="required" title="<?php 
echo _AT('required_field');
?>
">*</span><label for="body"><?php 
echo _AT('message');
?>
</label><br />
		<textarea name="message" id="body" rows="15" cols="45"><?php 
if ($body != '') {
コード例 #2
0
ファイル: add.tmpl.php プロジェクト: vicentborja/ATutor
    ?>
">*</span><label for="body<?php 
    echo $i;
    ?>
"><?php 
    echo _AT('glossary_definition');
    ?>
</label><br />
		<textarea name="definition[<?php 
    echo $i;
    ?>
]" class="formfield" cols="55" rows="7" id="body<?php 
    echo $i;
    ?>
" style="width:90%;"><?php 
    echo ContentManager::cleanOutput($_POST['definition'][$i]);
    ?>
</textarea>
	</div>

	<div class="row">
	<?php 
    echo _AT('glossary_related');
    ?>
<br />
	<?php 
    if ($row_g = mysql_fetch_assoc($this->result_glossary)) {
        echo '<select name="related_term[' . $i . ']">';
        echo '<option value="0"></option>';
        do {
            echo '<option value="' . $row_g['word_id'] . '">' . $row_g['word'] . '</option>';
コード例 #3
0
<form action="<?php echo $_SERVER['PHP_SELF']; if ($this->cid > 0) echo '?cid='.$this->cid; else if ($this->pid > 0) echo '?pid='.$this->pid;?>" method="post" name="form"> 
<div class="input-form" style="width:95%;margin-left:1.5em;">
<!-- <?php
if ($this->shortcuts): 
?>
 <fieldset id="shortcuts" style="margin-top:1em;float:right;clear:right;"><legend><?php echo _AT('shortcuts'); ?></legend>
	<ul>
		<?php foreach ($this->shortcuts as $link): ?>
			<li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>
		<?php endforeach; ?>
	</ul>
</fieldset>
<?php endif; ?> -->
	<div class="row">
		<div style="font-weight:bold;"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ftitle"><?php echo _AT('content_folder_title');  ?></label></div>
		<input type="text" name="title" id="ftitle" size="70" class="formfield" value="<?php echo ContentManager::cleanOutput($this->ftitle); ?>" />
	</div>
	
	<div class="row">
		<div style="font-weight:bold;"><?php echo _AT('release_date');  ?></div>
		<?php if ($_POST['day']) { ?>
			<?php
				$today_day   = $_POST['day'];
				$today_mon   = $_POST['month'];
				$today_year  = $_POST['year'];

				$today_hour  = $_POST['hour'];
				$today_min   = $_POST['min'];		
		}?>
		<?php require(AT_INCLUDE_PATH.'html/release_date.inc.php');	?>
	</div>
コード例 #4
0
	</ul>
</fieldset>
<?php 
}
?>
 -->
	<div class="row">
		<div style="font-weight:bold;"><span class="required" title="<?php 
echo _AT('required_field');
?>
">*</span><label for="ftitle"><?php 
echo _AT('content_folder_title');
?>
</label></div>
		<input type="text" name="title" id="ftitle" size="70" class="formfield" value="<?php 
echo ContentManager::cleanOutput($this->ftitle);
?>
" />
	</div>
	
	<div class="row">
		<div style="font-weight:bold;"><?php 
echo _AT('release_date');
?>
</div>
		<?php 
if ($_POST['day']) {
    ?>
			<?php 
    $today_day = $_POST['day'];
    $today_mon = $_POST['month'];
コード例 #5
0
ファイル: edit.inc.php プロジェクト: vicentborja/ATutor
    echo '0';
}
?>
" />

    <div class="row">
        <span>
            <span class="required" title="<?php 
echo _AT('required_field');
?>
">*</span><label for="ctitle"><strong><?php 
echo _AT('title');
?>
</strong></label>
            <input type="text" name="title" id="ctitle" size="60" class="formfield" value="<?php 
echo ContentManager::cleanOutput($_POST['title']);
?>
" />
        </span>
       <br /> <span class="nowrap">
        <label for="formatting_radios"><span class="required" title="<?php 
echo _AT('required_field');
?>
">*</span><strong><?php 
echo _AT('formatting');
?>
</strong></label>
        <span id="formatting_radios">
            <input type="radio" name="formatting" value="0" id="text" <?php 
if ($_POST['formatting'] == 0) {
    echo 'checked="checked"';
コード例 #6
0
ファイル: edit.inc.php プロジェクト: genaromendezl/ATutor
if (trim($_POST['body_text']) == '<br />') {
    $_POST['body_text'] = '';
}
if ($do_check) {
    $_POST['body_text'] = ContentManager::cleanOutput($_POST['body_text']);
}
?>
<br style="clear:both;"/>
    <div class="row">
        <span id="textSpan">
            <label for="body_text"><strong><?php 
echo _AT('body');
?>
</strong></label><br />
            <textarea name="body_text" id="body_text" cols="80" rows="20"><?php 
echo ContentManager::cleanOutput($_POST['body_text']);
?>
</textarea>
        </span>
        <span id="weblinkSpan">	
            <label for="weblink_text"><?php 
echo _AT('weblink');
?>
</label>
            <input name="weblink_text" id="weblink_text" value="<?php 
echo $_POST['weblink_text'] != '' ? htmlspecialchars($_POST['weblink_text']) : 'http://';
?>
" />
        </span>
    </div>
コード例 #7
0
?>
		<?php 
require AT_INCLUDE_PATH . 'html/release_date.inc.php';
?>
		<?php 
echo _AT('applies_to_all_sub_pages');
?>
	</div>

	<div class="row">
		<label for="keys"><?php 
echo _AT('keywords');
?>
</label><br />
		<textarea name="keywords" class="formfield" cols="73" rows="2" id="keys"><?php 
echo ContentManager::cleanOutput($_POST['keywords']);
?>
</textarea>
	</div>

	<div class="row">
		<input type="hidden" name="button_1" value="-1" />
		<?php 
if ($contentManager->getNumSections() > 1 - (bool) (!$cid)) {
    echo '<p>', _AT('editor_properties_insturctions_related'), '</p>';
}
?>
<br />
			<table border="0">
			<tr>
				<th><?php 
コード例 #8
0
 function printActionMenu($menu, $parent_id, $depth, $path, $children, $print_type = 'movable')
 {
     global $cid, $_my_uri, $_base_path, $rtl;
     static $end;
     $top_level = $menu[$parent_id];
     if (is_array($top_level)) {
         $counter = 1;
         $num_items = count($top_level);
         foreach ($top_level as $current_num => $content) {
             if (isset($content['test_id'])) {
                 continue;
             }
             $link = $buttons = '';
             echo '<tr>' . "\n";
             if ($print_type == 'movable') {
                 if ($content['content_id'] == $_POST['moved_cid']) {
                     $radio_selected = ' checked="checked" ';
                 } else {
                     $radio_selected = '';
                 }
                 $buttons = '<td>' . "\n" . '   <small>' . "\n" . '      <input type="image" name="move[' . $parent_id . '_' . $content['ordering'] . ']" src="' . $_base_path . 'images/before.gif" alt="' . _AT('before_topic', ContentManager::cleanOutput($content['title'])) . '" title="' . _AT('before_topic', ContentManager::cleanOutput($content['title'])) . '" style="height:1.5em; width:1.9em;" />' . "\n";
                 if ($current_num + 1 == count($top_level)) {
                     $buttons .= '      <input type="image" name="move[' . $parent_id . '_' . ($content['ordering'] + 1) . ']" src="' . $_base_path . 'images/after.gif" alt="' . _AT('after_topic', ContentManager::cleanOutput($content['title'])) . '" title="' . _AT('after_topic', ContentManager::cleanOutput($content['title'])) . '" style="height:1.5em; width:1.9em;" />' . "\n";
                 }
                 $buttons .= '   </small>' . "\n" . '</td>' . "\n" . '<td>';
                 if ($content['content_type'] == CONTENT_TYPE_FOLDER) {
                     $buttons .= '<input type="image" name="move[' . $content['content_id'] . '_1]" src="' . $_base_path . 'images/child_of.gif" style="height:1.25em; width:1.7em;" alt="' . _AT('child_of', ContentManager::cleanOutput($content['title'])) . '" title="' . _AT('child_of', ContentManager::cleanOutput($content['title'])) . '" />';
                 } else {
                     $buttons .= '&nbsp;';
                 }
                 $buttons .= '</td>' . "\n" . '<td><input name="moved_cid" value="' . $content['content_id'] . '" type="radio" id="r' . $content['content_id'] . '" ' . $radio_selected . '/></td>' . "\n";
             }
             $buttons .= '<td>' . "\n";
             if ($print_type == "related_content") {
                 if ($content['content_type'] == CONTENT_TYPE_CONTENT || $content['content_type'] == CONTENT_TYPE_WEBLINK) {
                     $link .= '<input type="checkbox" name="related[]" value="' . $content['content_id'] . '" id="r' . $content['content_id'] . '" ';
                     if (isset($_POST['related']) && in_array($content['content_id'], $_POST['related'])) {
                         $link .= ' checked="checked"';
                     }
                     $link .= ' />' . "\n";
                 }
             }
             if ($content['content_type'] == CONTENT_TYPE_FOLDER) {
                 $link .= '<img src="' . $_base_path . 'images/folder.gif" />';
             }
             $link .= '&nbsp;<label for="r' . $content['content_id'] . '">' . ContentManager::cleanOutput($content['title']) . '</label>' . "\n";
             if (is_array($menu[$content['content_id']]) && !empty($menu[$content['content_id']])) {
                 /* has children */
                 for ($i = 0; $i < $depth; $i++) {
                     if ($children[$i] == 1) {
                         echo $buttons;
                         unset($buttons);
                         if ($end && $i == 0) {
                             echo '<img src="' . $_base_path . 'images/clr.gif" alt="" width="16" height="16" class="img-size-tree" />';
                         } else {
                             echo '<img src="' . AT_BASE_HREF . $this->tree_vertline_icon . '" alt="" width="16" height="16" />';
                         }
                     } else {
                         echo '<img src="' . $_base_path . 'images/clr.gif" alt="" width="16" height="16" class="img-size-tree" />';
                     }
                 }
                 if ($counter == $num_items && $depth > 0) {
                     echo '<img src="' . AT_BASE_HREF . $this->tree_end_icon . '" alt="" width="16" height="16" />';
                     $children[$depth] = 0;
                 } else {
                     echo $buttons;
                     if ($num_items == $counter && $parent_id == 0) {
                         echo '<img src="' . AT_BASE_HREF . $this->tree_end_icon . '" alt="" width="16" height="16" />';
                         $end = true;
                     } else {
                         echo '<img src="' . AT_BASE_HREF . $this->tree_split_icon . '" alt="" width="16" height="16" />';
                     }
                     $children[$depth] = 1;
                 }
                 if ($_SESSION['s_cid'] == $content['content_id']) {
                     if (is_array($menu[$content['content_id']])) {
                         $_SESSION['menu'][$content['content_id']] = 1;
                     }
                 }
                 if ($_SESSION['menu'][$content['content_id']] == 1) {
                     echo '<img src="' . AT_BASE_HREF . $this->tree_disabled_icon . '" alt="' . _AT('toggle_disabled') . '" width="16" height="16" title="' . _AT('toggle_disabled') . '" />';
                 } else {
                     echo '<img src="' . AT_BASE_HREF . $this->tree_disabled_icon . '" alt="' . _AT('toggle_disabled') . '" width="16" height="16" title="' . _AT('toggle_disabled') . '" />';
                 }
             } else {
                 /* doesn't have children */
                 if ($counter == $num_items) {
                     if ($depth) {
                         echo $buttons;
                         for ($i = 0; $i < $depth; $i++) {
                             if ($children[$i] == 1) {
                                 if ($end && $i == 0) {
                                     echo '<img src="' . $_base_path . 'images/clr.gif" alt="" width="16" height="16" class="img-size-tree" />';
                                 } else {
                                     echo '<img src="' . AT_BASE_HREF . $this->tree_vertline_icon . '" alt="" width="16" height="16" />';
                                 }
                             } else {
                                 echo '<img src="' . $_base_path . 'images/clr.gif" alt="" width="16" height="16" class="img-size-tree" />';
                             }
                         }
                     } else {
                         echo $buttons;
                     }
                     echo '<img src="' . AT_BASE_HREF . $this->tree_end_icon . '" alt="" />';
                 } else {
                     if ($depth) {
                         echo $buttons;
                         $print = false;
                         for ($i = 0; $i < $depth; $i++) {
                             if ($children[$i] == 1) {
                                 if ($end && !$print) {
                                     $print = true;
                                     echo '<img src="' . AT_BASE_HREF . $this->tree_space_icon . '" alt="" width="16" height="16" />';
                                 } else {
                                     echo '<img src="' . AT_BASE_HREF . $this->tree_vertline_icon . '" alt="" width="16" height="16" />';
                                 }
                             } else {
                                 echo '<img src="' . AT_BASE_HREF . $this->tree_space_icon . '" alt="" width="16" height="16" />';
                             }
                         }
                         $print = false;
                     } else {
                         echo $buttons;
                     }
                     echo '<img src="' . AT_BASE_HREF . $this->tree_split_icon . '" alt="" width="16" height="16" />';
                 }
                 echo '<img src="' . AT_BASE_HREF . $this->tree_horizontal_icon . '" alt="" width="16" height="16" />';
             }
             echo '<small>';
             if ($_SESSION['prefs']['PREF_NUMBERING']) {
                 echo $path . $counter;
             }
             echo $link;
             echo '</small></td>' . "\n" . '</tr>' . "\n";
             $this->printActionMenu($menu, $content['content_id'], ++$depth, $path . $counter . '.', $children, $print_type);
             $depth--;
             $counter++;
         }
     }
 }
コード例 #9
0
ファイル: glossary.inc.php プロジェクト: genaromendezl/ATutor
			<td valign="top" align="right" class="row1"><label for="body<?php 
        echo $i;
        ?>
"><strong><?php 
        echo _AT('glossary_definition');
        ?>
:</strong></label></td>
			<td class="row1">
				<textarea name="glossary_defs[<?php 
        echo AT_print($word[$i], 'glossary.word');
        ?>
]" class="formfield" cols="55" rows="4" id="body<?php 
        echo $i;
        ?>
"><?php 
        echo ContentManager::cleanOutput($current_defn);
        ?>
</textarea></td>
		</tr>
		<tr>
			<td valign="top" align="right" class="row1"><label for="r<?php 
        echo $i;
        ?>
"><strong><?php 
        echo _AT('glossary_related');
        ?>
:</strong></label></td>
			<td class="row1"><?php 
        if ($num_glossary > 1) {
            echo '<select name="related_term[' . AT_print($word[$i], 'glossary.word') . ']" id="r' . $i . '">';
            echo '<option value="0"></option>';
コード例 #10
0
ファイル: edit.inc.php プロジェクト: radiocontrolled/ATutor
if (!defined('AT_INCLUDE_PATH')) { exit; }
?>
    <script type="text/javascript" language="javascript">
    //<!--
        ATutor.mods.editor.editor_pref = "<?php if(isset($_SESSION['prefs']['PREF_CONTENT_EDITOR'])) echo $_SESSION['prefs']['PREF_CONTENT_EDITOR'] ?>";
    //-->
    </script>
    <input type="hidden" name="displayhead" id="displayhead" value="<?php if ($_POST['displayhead']==1 || $_REQUEST['displayhead']==1 || $_GET['displayhead']==1) echo '1'; else echo '0'; ?>" />
    <input type="hidden" name="displaypaste" id="displaypaste" value="<?php if ($_POST['displaypaste']==1 || $_REQUEST['displaypaste']==1 || $_GET['displaypaste']==1) echo '1'; else echo '0'; ?>" />
    <input type="hidden" name="complexeditor" id="complexeditor" value="<?php if ($_POST['complexeditor']==1 || $_REQUEST['complexeditor']==1 || $_GET['complexeditor']==1) echo '1'; else echo '0'; ?>" />

	<div class="row">
	    <span>
		<span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ctitle"><strong><?php echo _AT('title');  ?></strong></label>
		<input type="text" name="title" id="ctitle" size="60" class="formfield" value="<?php echo ContentManager::cleanOutput($_POST['title']); ?>" />
        </span>
       <br /> <span class="nowrap">
        <label for="formatting_radios"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><strong><?php echo _AT('formatting'); ?></strong></label>
        <span id="formatting_radios">
            <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] == 0) { echo 'checked="checked"'; } ?> />
            <label for="text"><?php echo _AT('plain_text'); ?></label>

            <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1) { echo 'checked="checked"'; } ?> />
            <label for="html"><?php echo _AT('html'); ?></label>
       
            <input type="radio" name="formatting" value="3" id="html_visual_editor" <?php if ($_POST['formatting'] == 3) { echo 'checked="checked"'; } ?> />
            <label for="html_visual_editor"><?php echo _AT('html') . ' - '. _AT('visual_editor'); ?></label>
       
            <input type="radio" name="formatting" value="2" id="weblink" <?php if ($_POST['formatting'] == 2) { echo 'checked="checked"'; } ?> />
            <label for="weblink"><?php echo _AT('weblink'); ?></label>