First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,54 @@
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<?php
|
||||
$text_data = trim(db_getVal("SELECT text_data FROM text_data WHERE school_num = $school_num AND text_id = 'Classified Message'"));
|
||||
if (strlen($text_data)) {
|
||||
echo("<div class='classified-message-div'>" . nl2br($text_data) . "</div><br>\n<br>\n");
|
||||
}
|
||||
?>
|
||||
<p class='align-left'><b><label for='dialog_subcategory_num'><?php displayLanguageText('TEXT-CATEGORY'); ?></label>:</b><br>
|
||||
<select name='subcategory_num' id='dialog_subcategory_num' class='form-field ui-widget-content ui-corner-all'>
|
||||
<option value=''><?php displayLanguageText('TEXT-SELECT-CATEGORY'); ?></option>
|
||||
<?php
|
||||
$query = "select category,subcategory,sc.record_num " .
|
||||
"from classified_categories as cc, classified_subcategories as sc " .
|
||||
"where sc.category_num = cc.record_num " .
|
||||
"order by 1,2";
|
||||
$results = db_query($query);
|
||||
|
||||
$prev_cat = "";
|
||||
while ($row = db_fetch_array($results)) {
|
||||
$category = $row['category'];
|
||||
$subcategory = $row['subcategory'];
|
||||
$rnum = $row['record_num'];
|
||||
|
||||
if ($prev_cat != $category) {
|
||||
if ($prev_cat != "") echo(" </optgroup>\n");
|
||||
echo(" <optgroup label='$category'>\n");
|
||||
$prev_cat = $category;
|
||||
}
|
||||
|
||||
echo(" <option value='$rnum'>$subcategory</option>\n");
|
||||
}
|
||||
echo(" </optgroup>\n");
|
||||
?>
|
||||
</select></p>
|
||||
<p class='align-left'><b><label for='dialog_title'><?php displayLanguageText('TEXT-TITLE'); ?></label>:</b><br>
|
||||
<input type='text' name='title' id='dialog_title' size='60' class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_description'><?php displayLanguageText('TEXT-DESCRIPTION'); ?></label>:</b><br>
|
||||
<textarea name='description' id='dialog_description' rows='6' cols='60' class="form-field text ui-widget-content ui-corner-all"></textarea></p>
|
||||
<p class='align-left'><b><label for='dialog_contact_info'><?php displayLanguageText('TEXT-DISPLAY-INFORMATION'); ?></label>:</b><br>
|
||||
<input type='text' name='contact_info' id='dialog_contact_info' size='60' class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_contact_email'><?php displayLanguageText('TEXT-EMAIL-ADDRESS'); ?></label>:</b><br>
|
||||
<input type='text' name='contact_email' id='dialog_contact_email' size='60' class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_post_until_date'><?php displayLanguageText('TEXT-END-DATE'); ?></label>:</b><br>
|
||||
<input type='text' name='post_until_date' id='dialog_post_until_date' size='12' class="date-field form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_status'><?php displayLanguageText('TEXT-STATUS'); ?></label>:</b><br>
|
||||
<select name='status' id='dialog_status' class='form-field ui-widget-content ui-corner-all'>
|
||||
<?php BuildFileList("event_status.txt",$status) ?>
|
||||
</select></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in new issue
Block a user