//FIXME } } } return $retval; } $cats_for_table = array(); $maxlevel = 0; $sel_cats = "<option value='0'>" . $locale['PRP821'] . "</option>\n" . prp_tmp_show_cat(0, $all_cats, 0, $top_cat, $cats_for_table, $maxlevel, isset($id) ? $id : 0); $maxlevel++; /* * GUI */ opentable($locale['PRP820']); prp_admin_menu(); if (isset($_GET['new']) || isset($_GET['edit'])) { echo "<p>\n<form action='{$action}' method='POST' name='inputform'>\n<table align='center' cellspacing='1' class='tbl-border'>\n<tr>\n\t<td class='tbl2'>" . $locale['PRP002'] . ": *</td>\n\t<td class='tbl1'><input type='text' size='50' maxlength='50'" . " class='textbox' name='cat_name' value='{$name}'></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PRP012'] . ":</td>\n\t<td class='tbl1'><select name='top_cat' size='1' class='textbox'>" . "{$sel_cats}</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PRP822'] . ":</td>\n\t<td class='tbl1'><select name='sort_field' class='textbox'>" . $sel_sort_by . "</select> <select name='sort_dir'" . " class='textbox'>{$sel_sort_dir}</select>\n\t</td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PRP829'] . ":</td>\n\t<td class='tbl1'><select name='access' class='textbox'>" . $access_ops . "</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PRP827'] . ":</td>\n\t<td class='tbl1'><select name='upload_access' class='textbox'>" . $sel_upload_access . "</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PRP826'] . ":</td>\n\t<td class='tbl1'><select name='review_access' class='textbox'>" . $sel_review_access . "</select></td>\n</tr>\n<tr>\n\t<td class='tbl2'>" . $locale['PRP828'] . ":</td>\n\t<td class='tbl1'><input type='text' name='order' class='textbox'" . " size='5' value='{$order}'></td>\n</tr>\n<tr>\n\t<td class='tbl2'></td>\n\t<td class='tbl1'>\n\t\t<textarea cols='70' rows='5' maxlength='255' class='textbox'" . " name='desc'>{$desc}</textarea><br>" . prp_get_bb_smileys("desc", "0", false) . "</td>\n</tr>\n<tr>\n\t<td class='tbl2' colspan='2' align='center'><input type='submit'" . " value='" . $locale['PRP010'] . "' class='button' name='save'>\n\t</td>\n</tr>\n</table>\n</form>\n</p>"; } // show all cats if (count($cats_for_table)) { echo ' <table align="center" class="tbl-border" cellspacing="1"> <thead> <tr> <th width="16"></th> <th>' . $locale['PRP002'] . ' [<a href="' . FUSION_SELF . '?new=1">' . $locale['prp_new'] . '</a>]</th> <th colspan="' . $maxlevel . '">' . $locale['PRP828'] . '</th> <th align="center">' . $locale['PRP829'] . '</th> <th>' . $locale['PRP827'] . '</th> <th>' . $locale['PRP826'] . '</th> <th>' . $locale['PRP822'] . '</th> <th width="1" colspan="2">' . $locale['prp_reviews'] . '</th>
* GUI */ opentable($locale['PRP021']); if (isset($id)) { $res = dbquery("SELECT comment_id, comment_timestamp,\n\t\tcomment_text, comment_smileys\n\t\tFROM " . DB_PRP_COMMENTS . "\n\t\tWHERE comment_id='" . $id . "'\n\t\t\tAND review_id='" . $review->id . "'"); if (!dbrows($res)) { fallback(FUSION_SELF . '?did=' . $review->id); } $comm = dbarray($res); echo ' <form action="' . FUSION_SELF . '?did=' . $review->id . '&id=' . $id . '" method="post" name="inputform"> <table align="center" cellspacing="1"> <tr> <td align="center"> <textarea cols="70" rows="8" class="textbox" name="comm_text">' . $comm['comment_text'] . '</textarea><br />' . prp_get_bb_smileys('comm_text', $comm['comment_smileys'], true) . '</td> </tr> <tr> <td align="center"><input type="submit" value="' . $locale['PRP010'] . '" class="button" name="save"> </td> </tr> </table>'; } // show all $res = dbquery("SELECT comment_id, comment_text, comment_smileys, user_id,\n\tcomment_user_name, comment_ip, comment_timestamp\n\tFROM " . DB_PRP_COMMENTS . "\n\tWHERE review_id='" . $review->id . "'\n\tORDER BY comment_timestamp ASC"); if (!dbrows($res)) { echo "<p>" . $locale['PRP212']; } else { echo ' <form method="post" action="include/do_did.php?did=' . $review->id . '">
</p> <p> <fieldset> <legend>' . $locale['PRP108'] . ':</legend> <span class="small2">' . $locale['PRP109'] . '</span><br /> <textarea rows="5" cols="75" class="textbox" name="abstract">' . $abstract . '</textarea><br /> ' . prp_get_bb_smileys('abstract', 0, false) . ' </fieldset> </p> <p> <fieldset> <legend>' . $locale['PRP025'] . ':</legend> <textarea rows="10" cols="75" class="textbox" name="desc">' . $desc . '</textarea><br /> ' . prp_get_bb_smileys('desc', 0, false) . ' </fieldset> </p> <p> <fieldset> <legend>' . $locale['prp_license'] . ':</legend> <select size="1" name="license_id" class="textbox">' . $sel_licenses . ' </select><br /> <label><input type="checkbox" name="lizenz_okay" id="lo0" ' . $li_ok . '> ' . $locale['PRP106'] . '</label><br /> <label>' . $locale['PRP107'] . ':</label> <input type="text" value="' . $li_url . '" maxlength="255" size="60"
<td> <input type="checkbox" name="new_comm_pm" id="ncp0"' . ($prp->settings['new_comm_pm'] == 1 ? ' checked="checked"' : '') . '> <label for="ncp0">' . $locale['PRP706'] . '</label> <br /> <input type="checkbox" name="allow_notify" id="an0"' . ($prp->settings['allow_notify'] == 'yes' ? ' checked="checked"' : '') . '> <label for="an0">' . $locale['PRP750'] . '</label> </td> </tr> </tbody> </table> </fieldset> </p> ' . "\n<p>\n<fieldset>\n<legend>" . $locale['prp_reviews'] . "</legend>\n<table width='100%' border='0' cellspacing='1' class='fusion-settings'>\n<colgroup>\n\t<col width='33%' />\n\t<col width='*' />\n</colgroup>\n<tbody>\n<tr>\n\t<td align='right'>" . $locale['PRP703'] . ":</td>\n\t<td><input type='text' name='upload_file'" . " value='" . substr($prp->settings['upload_file'], strlen(BASEDIR)) . "'" . " size='50' maxlength='200' class='textbox'><br>" . $locale['prp_status'] . ": {$status_upload_file}</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PRP722'] . ":<br><span class='small2'>" . $locale['PRP713'] . "</span></td>\n\t<td><input type='text' size='50' name='file_ext'" . " value='" . $prp->settings['file_ext'] . "' class='textbox'><br>" . "<span class='small2'>" . $locale['PRP715'] . "</span></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PRP716'] . ":<br><span class='small2'>" . $locale['PRP717'] . "</span></td>\n\t<td>{$upload_max_filesize}<br>\n\t\t<input type='text' value='" . $prp->settings['file_max'] . "'" . " size='14' maxlength='12' class='textbox'" . " name='file_max'> =" . parsebytesize($prp->settings['file_max']) . " (" . $status_file_maxsize . ")<br>" . "<span class='small2'>" . $locale['PRP720'] . "</span></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['prp_misc'] . ":</td>\n\t<td><input type='checkbox' name='user_edit' id='ue0'" . ($prp->settings['user_edit'] == 1 ? " checked" : "") . "> " . "<label for='ue0'>" . $locale['PRP721'] . "</label><br>\n\t\t<input type='checkbox' name='hide_user_allow' id='hua0'" . ($prp->settings['hide_user_allow'] == "yes" ? " checked" : "") . "> " . "<label for='hua0'>" . $locale['PRP741'] . "</label>" . "</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PRP712'] . "</td>\n\t<td><input type='text' size='5' maxlength='3'" . " value='" . $prp->settings['broken_count'] . "'" . " class='textbox' name='broken_count'>" . " <span class='small2'>(" . $locale['PRP731'] . ")</span></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PRP736'] . "</td>\n\t<td><select name='broken_access' class='textbox'>" . $broken_access . "</select></td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PRP737'] . "</td>\n\t<td><select name='new_days_long' class='textbox'>" . $new_days_long . "</select> " . $locale['PRP738'] . "</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PRP725'] . ":<br>{$broken_text_legend}</td>\n\t<td><textarea class='textbox' name='broken_text' cols='50'" . " rows='6'>" . $prp->settings['broken_text'] . "</textarea><br>" . prp_get_bb_smileys("broken_text", "not_used", false, false) . "</td>\n</tr>\n<tr>\n\t<td align='right'>" . $locale['PRP762'] . ":</td>\n\t<td><textarea class='textbox' name='review_restricted' cols='50'" . " rows='6'>" . $prp->settings['review_restricted'] . "</textarea><br>" . prp_get_bb_smileys('review_restricted', "not_used", false, false) . "</td>\n</tr>\n</tbody>\n</table>\n</fieldset>\n</p>\n" . ' <p> <fieldset> <legend>' . $locale['PRP015'] . '</legend> <table width="100%" border="0" cellspacing="1" class="fusion-settings"> <colgroup> <col width="33%" /> <col width="*" /> </colgroup> <tbody> <tr> <td align="right">' . $locale['PRP704'] . ':</td> <td> <input type="text" name="upload_image" value="' . substr($prp->settings['upload_image'], strlen(BASEDIR)) . '" size="50" maxlength="200" class="textbox"><br />' . $locale['prp_status'] . ': ' . $status_upload_image . '</td>
$c_smileys = $_GET['comm_smileys'] == "1" ? "1" : "0"; } else { $c_user = ""; $c_text = ""; $c_smileys = "1"; } if (iMEMBER) { $name_line = ""; } else { $name_line = $locale['PRP002'] . ": <input type='text' size='32' maxlength='50'" . " class='textbox' name='comment_name'" . " value='" . $c_user . "' /><br />\n"; } opentable($locale['PRP211']); if (isset($_GET['wrong_captcha'])) { show_info($locale['prp_wrong_captcha']); } echo "\n<a name='new_comment'></a>\n<p></p>\n<form action='include/do_did.php?did=" . $review->id . "' method='post'\n\tname='inputform'>\n<div align='center'>\n{$name_line}\n\n<textarea cols='60' rows='5' class='textbox' name='comm_text'>" . $c_text . "</textarea><br />" . prp_get_bb_smileys("comm_text", $c_smileys, true) . ' <hr />'; if (!iMEMBER) { echo ' <p></p> <label>' . $locale['prp_captcha'] . ':</label><br /> ' . make_captcha() . ' <input type="text" class="textbox" name="user_code" size="5" />'; } echo ' <p></p> <input type="submit" value="' . $locale['PRP211'] . '" class="button" name="add_comment" /> </div> </form>'; closetable();