(veranstaltung = german word for event)Oliver Georgi wrote: - Content Part Blog
- Content Part Veranstaltung/Termine
are this features still planned, oliver?
btw: i really love phpwcms
(veranstaltung = german word for event)Oliver Georgi wrote: - Content Part Blog
- Content Part Veranstaltung/Termine
Code: Select all
function showArticles($loc_art) {
$result = mysql_query("SELECT * FROM ".DB_PREPEND."phpwcms_article WHERE article_public = 1 AND article_deleted = 0 ")
or die("There was an error<br /> " . mysql_error() . "<hr />");
$value_loc .= "<select name=\"article\">";
while ($row = mysql_fetch_array($result)) {
$value_loc .= "<option name=\"article\"";
if ($row[article_id]==$loc_art) {
$value_loc .= " selected";
}
$value_loc .= " value=\"$row[article_id]\">$row[article_title]</option>\n";
}
$value_loc .= "</select>\n";
return $value_loc;
}
Code: Select all
<tr>
<th align="right"><?php echo $BL['be_cal']['forms']['location']; ?>:</th>
<td align="left"><input type="text" id="location" name="location" value="<?php echo stripslashes($values['location']); ?>" /></td>
</tr>
Code: Select all
<tr>
<th align="right">Article:</th>
<td align="left"> <?php echo showArticles($values['article']); ?></td>
</tr>
Code: Select all
$event = file_get_contents(PHPWCMS_ROOT."/include/inc_module/mod_calendar/inc_front/templates/".$template);
Code: Select all
$articleresult = mysql_query("SELECT * FROM ".DB_PREPEND."phpwcms_article WHERE article_id = " . $row['article'] . " LIMIT 1")
or die("There was an error<br /> " . mysql_error());
while ($articlerow = mysql_fetch_array($articleresult, MYSQL_ASSOC)) {
$art_id=$articlerow["article_id"];
$art_cid=$articlerow["article_cid"];
}
mysql_free_result($articleresult);
$eventlink = "<a href=\"index.php?id=" . $art_cid . "," . $art_id . ",0,0,1,0\">more</a>";
$event = str_replace("{EVENTLINK}", $eventlink , $event);
Code: Select all
$sql = "SELECT setid, events.id, title, category, name, description, approved, date FROM "
Code: Select all
$sql = "SELECT setid, events.id, title, category, name, description, approved, date, article FROM "
Code: Select all
$sql .= "(date, span, time, title, category, price, location, description, extrainfo, approved, setid, userId) ";
Code: Select all
$sql .= "(date, span, time, title, category, price, location, description, extrainfo, approved, setid, userId, article) ";
Code: Select all
$sql .= "0)";
Code: Select all
$sql .= "0, ";
$sql .= "$values[article])";
Code: Select all
$extra_sql .= "setid = $setid ";
Code: Select all
$extra_sql .= "setid = $setid, ";
$extra_sql .= "article = $values[article] ";
Code: Select all
$extra_sql .= "setid = $values[setid] ";
Code: Select all
$extra_sql .= "setid = $values[setid], ";
$extra_sql .= "article = $values[article] ";
Code: Select all
$row['title'] = "<a href=\"index.php?$alias&month=$month&year=$year\">" . $row['title'] . "</a>"; // make the title a link to the main calendar page.
Code: Select all
$row['title'] = "<a href=\"index.php?id=" . $art_cid . "," . $art_id . ",0,0,1,0\">" . $row['title'] . "</a>"; // make the title a link to the specified article.