예제 #1
0
     for ($i = 1; $i < 32; $i++) {
         if ($i < 10) {
             $ii = "0" . $i;
         } else {
             $ii = $i;
         }
         $ausgabe .= "<option value=\"{$ii}\"";
         if ($ii == substr($date, 6, 2)) {
             $ausgabe .= " selected";
         }
         $ausgabe .= ">{$ii}\n";
     }
     $ausgabe .= "</select>";
     return $ausgabe;
 }
 echo "\n        <tr>\n          <td class=grey width=150>" . $I18N->msg("online_from") . "</td>\n          <td class=grey>" . selectdate($article->getValue("online_from"), "_von") . "</td>\n        </tr>\n        <tr>\n          <td class=grey>" . $I18N->msg("online_to") . "</td>\n          <td class=grey>" . selectdate($article->getValue("online_to"), "_bis") . "</td>\n        </tr>\n        <tr>\n          <td class=grey>" . $I18N->msg("name_description") . "</td>\n          <td class=grey><input type=text name=meta_article_name value=\"" . htmlspecialchars($article->getValue("name")) . "\" size=30 style=\"width:100%;\"></td>\n        </tr>\n        <tr>\n          <td class=grey>" . $I18N->msg("description") . "</td>\n          <td class=grey>\n                      <textarea name=meta_description id=meta_description cols=30 rows=5 style='width:100%; height: 80px;'>" . htmlspecialchars($article->getValue("description")) . "</textarea>\n                    </td>\n        </tr>\n        <tr>\n          <td class=grey>" . $I18N->msg("keywords") . "</td>\n          <td class=grey>\n                      <textarea name=meta_keywords id=meta_keywords cols=30 rows=5 style='width:100%; height: 80px;'>" . htmlspecialchars($article->getValue("keywords")) . "</textarea>\n                    </td>\n        </tr>";
 echo "<tr><td class=grey>" . $I18N->msg("metadata_image") . "</td><td class=grey>";
 echo "  <table>\n        <input type=hidden name=REX_MEDIA_DELETE_1 value=0 id=REX_MEDIA_DELETE_1>\n        <tr>\n        <td><input type=text size=30 name=REX_MEDIA_1 value='" . $article->getValue("file") . "' id=REX_MEDIA_1 readonly=readonly></td>\n        <td><a href=javascript:openREXMedia(1);><img src=pics/file_open.gif width=16 height=16 title='medienpool' border=0></a></td>\n        <td><a href=javascript:deleteREXMedia(1);><img src=pics/file_del.gif width=16 height=16 title='-' border=0></a></td>\n        <td><a href=javascript:addREXMedia(1)><img src=pics/file_add.gif width=16 height=16 title='+' border=0></a></td>\n        </tr></table>";
 echo "</td></tr>";
 echo "<tr bgcolor=#eeeeee>";
 if ($article->getValue("teaser") == 1) {
     echo "<td align=right class=grey><input type=checkbox name=meta_teaser checked value=1></td>";
 } else {
     echo "<td align=right class=grey><input type=checkbox id=meta_teaser name=meta_teaser value=1></td>";
 }
 echo "  <td class=grey><label for=meta_teaser>" . $I18N->msg("teaser") . "</label></td>\n        </tr>";
 echo "  </tr>\n        {$out}\n         ";
 echo "\n        <tr>\n          <td class=grey>&nbsp;</td>\n          <td class=grey><input type=submit value='" . $I18N->msg("update_metadata") . "' size=8></td>\n        </tr>\n        </form>\n        </table>";
 // --------------------------------------------------- START - FUNKTION ZUM AUSLESEN DER KATEGORIEN
 function add_cat_options(&$select, &$cat, &$cat_ids, $groupName = '', $nbsp = '')
 {
예제 #2
0
     }
 }
 switch ($type) {
     case '1':
         select("0");
         break;
     case '2':
         select("1");
         break;
     case '3':
         $date = $_POST['date'];
         selectdate("1", $date);
         break;
     case '4':
         $date = $_POST['date'];
         selectdate("0", $date);
         break;
     case '5':
         $id = $_POST['id'];
         $ready = $_POST['ready'];
         mysql_query("UPDATE b_sell SET b_ready='{$ready}' WHERE id='{$id}' ");
         echo "修改成功";
         break;
     case '6':
         $remark = $_POST['remark'];
         $id1 = $_POST['id'];
         mysql_query("UPDATE b_sell SET b_admin_remark='{$remark}' WHERE id='{$id1}'");
         echo "修改成功";
         break;
     default:
         break;
예제 #3
0
 $typesql->setQuery("select * from rex_article_type order by name");
 for ($i = 0; $i < $typesql->getRows(); $i++) {
     $typesel->add_option($typesql->getValue("name"), $typesql->getValue("type_id"));
     $typesql->next();
 }
 $typesel->set_selected($article->getValue("type_id"));
 if ($typesql->getRows() == 1) {
     $out = "<input type=hidden name=type_id value=1>";
 } else {
     $out = "<tr><td class=grey>" . $I18N->msg("article_type_list_name") . "</td><td class=grey>" . $typesel->out() . "</td></tr>";
 }
 echo "\t<table border=0 cellpadding=5 cellspacing=1 width=100%>\r\n\t\t\t\t<form action=index.php method=post ENCTYPE=multipart/form-data>\r\n\t\t\t\t<input type=hidden name=page value=content>\r\n\t\t\t\t<input type=hidden name=article_id value='{$article_id}'>\r\n\t\t\t\t<input type=hidden name=mode value='meta'>\r\n\t\t\t\t<input type=hidden name=save value=1>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td colspan=2>" . $I18N->msg("general") . "</td>\r\n\t\t\t\t</tr>";
 if ($err_msg != "") {
     echo "<tr><td colspan=2 class=warning><font class=warning>{$err_msg}</font></td></tr>";
 }
 echo "\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=grey width=150>" . $I18N->msg("online_from") . "</td>\r\n\t\t\t\t\t<td class=grey>" . selectdate($article->getValue("online_von"), "_von") . "</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=grey>" . $I18N->msg("online_to") . "</td>\r\n\t\t\t\t\t<td class=grey>" . selectdate($article->getValue("online_bis"), "_bis") . "</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=grey>" . $I18N->msg("name_description") . "</td>\r\n\t\t\t\t\t<td class=grey><input type=text name=article_name value=\"" . htmlentities($article->getValue("name")) . "\" size=30 style=\"width:100%;\"></td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=grey>" . $I18N->msg("description") . "</td>\r\n\t\t\t\t\t<td class=grey><textarea name=beschreibung cols=30 rows=5 style='width:100%;'>" . htmlentities($article->getValue("beschreibung")) . "</textarea></td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=grey>" . $I18N->msg("keywords") . "</td>\r\n\t\t\t\t\t<td class=grey><textarea name=suchbegriffe cols=30 rows=5 style='width:100%;'>" . htmlentities($article->getValue("suchbegriffe")) . "</textarea></td>\r\n\t\t\t\t</tr>";
 if ($article->getValue("file") != "") {
     echo "<tr>\r\n\t\t\t\t\t<td class=grey>" . $I18N->msg("metadata_image") . "</td>\r\n\t\t\t\t\t<td class=grey><img src=../files/" . $article->getValue("file") . " width=250></td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=grey align=right><input type=checkbox name=METAFILEDEL></td>\r\n\t\t\t\t\t<td class=grey>" . $I18N->msg("delete_file") . "</td>\r\n\t\t\t\t</tr>";
 } else {
     echo "<tr>\r\n\t\t\t\t\t<td class=grey>" . $I18N->msg("metadata_image") . "</td>\r\n\t\t\t\t\t<td class=grey><INPUT NAME=METAFILE TYPE=file size=2></td>\r\n\t\t\t\t</tr>";
 }
 echo "<tr bgcolor=#eeeeee>";
 if ($article->getValue("checkbox01") == 1) {
     echo "<td align=right class=grey><input type=checkbox name=checkbox01 checked value=1></td>";
 } else {
     echo "<td align=right class=grey><input type=checkbox name=checkbox01 value=1></td>";
 }
 echo "\t<td class=grey>" . $I18N->msg("tease_on_startpage") . "</td>\r\n\t\t\t\t</tr>";
 echo "\t</tr>\r\n\t\t\t\t{$out}\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=grey>&nbsp;</td>\r\n\t\t\t\t\t<td class=grey><input type=submit value='" . $I18N->msg("update_metadata") . "' size=8></td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t</form>\r\n\t\t\t\t</table>";
 if ($REX_USER->isValueOf("rights", "advancedMode[]")) {
     echo "<table border=0 cellpadding=5 cellspacing=1 width=100%>\r\n\t\t\t\t\t<form action=index.php method=get>\r\n\t\t\t\t\t<input type=hidden name=page value=content>\r\n\t\t\t\t\t<input type=hidden name=article_id value='{$article_id}'>\r\n\t\t\t\t\t<input type=hidden name=mode value='meta'>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td colspan=2>" . $I18N->msg("other_functions") . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<td class=grey width=150>" . $I18N->msg("category") . "</td>\r\n\t\t\t\t\t\t<td class=grey><select name=func_category_id size=1 style='width:100%;'>";
예제 #4
0
    return $s;
}
if ($id == -1) {
    $addform = '<p><a onclick="$(\'#add-license\').slideToggle();">Add a New License</a></p>';
    $hide = 'class="hide"';
    $preview = '';
    $publink = '';
    $stafflink = '';
} else {
    $hide = '';
    $addform = '';
    $preview = '<span><strong>Preview:</strong></span> ';
    $publink = '<a target="_blank" href="' . BASE_URL . $tag . '">Public View</a> | ';
    $stafflink = '<a target="_blank" href="' . BASE_URL . $tag . '/staff">Staff View</a>';
}
$date_signed_approved = selectdate('date_signed_approved', $date_signed_approved);
$licensedocs = $db->listLicenseDocs();
$selectLicenseDoc = '
	<select name="doc_alias">
	  <option value="">(None)</option>';
foreach ($licensedocs as $doc) {
    $selected = '';
    if ($doc['alias'] == $doc_alias) {
        $selected = ' selected="selected"';
    }
    $selectLicenseDoc .= '
	  <option value="' . $doc['alias'] . '"' . $selected . '>' . $doc['filename'] . '</option>
	';
}
$selectLicenseDoc .= '</select>';
$licenseDocLink = '(No license associated with this record)';