<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Meeting Room Booking System (MRBS)]]></title><description><![CDATA[<p dir="auto">Ciao a tutti<br />
qualcuno conosce l'applicazione in oggetto ?<br />
Non so se è OT per questo forum, ma il mio inglese zoppica e in rete poco ho trovato, mi servirebbe aiuto in italiano su un problema di inserimento dati in mysql, probabilmente un problema di array.<br />
In sintesi ho aggiunto dei campi al DB e dei checkbox per l'inserimento di un valore si/no<br />
solo che mi scrive nellatabella saltando completamente il primo insert<br />
Chi mi può aiutare?</p>
<p dir="auto">grazie e auguri a tutti</p>
<p dir="auto"><img src="http://forum.html.it/forum/images/smilies/dho.gif" alt="" class="img-markdown  img-fluid" /></p>
]]></description><link>https://dev.connect.gt/topic/57723/meeting-room-booking-system-mrbs</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 08:41:19 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/57723.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Dec 2007 18:06:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Meeting Room Booking System (MRBS) on Sat, 22 Dec 2007 17:30:55 GMT]]></title><description><![CDATA[<p dir="auto">vi è qualcuno che mi aiuta?<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/ad0a1f8d-b404-40e4-a46a-e563b14044da-dho.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--arrabbiato" style="height:1.4em;width:auto;vertical-align:middle" title=":x" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/656229</link><guid isPermaLink="true">https://dev.connect.gt/post/656229</guid><dc:creator><![CDATA[linno]]></dc:creator><pubDate>Sat, 22 Dec 2007 17:30:55 GMT</pubDate></item><item><title><![CDATA[Reply to Meeting Room Booking System (MRBS) on Fri, 21 Dec 2007 20:59:26 GMT]]></title><description><![CDATA[<p dir="auto">il file</p>
]]></description><link>https://dev.connect.gt/post/656227</link><guid isPermaLink="true">https://dev.connect.gt/post/656227</guid><dc:creator><![CDATA[linno]]></dc:creator><pubDate>Fri, 21 Dec 2007 20:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to Meeting Room Booking System (MRBS) on Fri, 21 Dec 2007 20:55:32 GMT]]></title><description><![CDATA[<p dir="auto">tutto ruota intorno a 3 pagine<br />
edit_entry.php, edit_entry_handler.php e mrbs_sql.inc alla prima ho aggiunto 8 checkbox con valore si/no per dei servizi aggiuntivi.<br />
ho creato i campi nel DB con valore "varchar", 2 - ho inserito i nome campo ne file inc e.. funziona! ma con un difetto, il check (8) inserisce nel (7) e cosi via fino ad arrivare al primo (1) che perde il valore e il campo (8) rimane vuoto.. come se scartasse tutto l'inserimento di un campo!!!!</p>
<p dir="auto">se invece modifico la prenotazione con la stessa edit_entry.php funziona perfettamente!!! ????</p>
<p dir="auto">posto un rar delle pagine e metto in chiaro la pagina edit</p>
<p dir="auto">grazie</p>
<p dir="auto">---- PAGINA------</p>
<pre><code class="language-php">&lt;?php
# $Id: edit_entry.php,v 1.30.2.4 2007/02/13 12:53:24 jberanek Exp $
require_once('grab_globals.inc.php');
include "config.inc.php";
include "functions.inc";
include "$dbsys.inc";
include "mrbs_auth.inc";
global $twentyfourhour_format;
#If we dont know the right date then make it up
if(!isset($day) or !isset($month) or !isset($year))
{
$day = date("d");
$month = date("m");
$year = date("Y");
}
if(empty($area))
$area = get_default_area();
if(!isset($edit_type))
$edit_type = "";
if(!getAuthorised(1))
{
showAccessDenied($day, $month, $year, $area);
exit;
}
# This page will either add or modify a booking
# We need to know:
# Name of booker
# Description of meeting
# Date (option select box for day, month, year)
# Time
# Duration
# Internal/External
# Firstly we need to know if this is a new booking or modifying an old one
# and if it's a modification we need to get all the old data from the db.
# If we had $id passed in then it's a modification.
if (isset($id))
{
$sql = "select name, create_by, description, start_time, end_time,
type, room_id, entry_type, repeat_id, lavf, lavl, proie, ampli, aconf, vconf, presi, puli from $tbl_entry where id=$id";

$res = sql_query($sql);
if (! $res) fatal_error(1, sql_error());
if (sql_count($res) != 1) fatal_error(1, get_vocab("entryid") . $id . get_vocab("not_found"));

$row = sql_row($res, 0);
sql_free($res);
# Note: Removed stripslashes() calls from name and description. Previous
# versions of MRBS mistakenly had the backslash-escapes in the actual database
# records because of an extra addslashes going on. Fix your database and
# leave this code alone, please.
$name = $row[0];
$create_by = $row[1];
$description = $row[2];
$start_day = strftime('%d', $row[3]);
$start_month = strftime('%m', $row[3]);
$start_year = strftime('%Y', $row[3]);
$start_hour = strftime('%H', $row[3]);
$start_min = strftime('%M', $row[3]);
$duration = $row[4] - $row[3] - cross_dst($row[3], $row[4]);
$type = $row[5];
$room_id = $row[6];
$entry_type = $row[7];
$rep_id = $row[8];
$lavf = $row[10];
$lavl = $row[11];
$ampli = $row[12];
$proie = $row[13];
$aconf = $row[14];
$vconf = $row[15];
$presi = $row[16];
$puli = $row[17];
if($entry_type &gt;= 1)
{
$sql = "SELECT rep_type, start_time, end_date, rep_opt, rep_num_weeks
FROM $tbl_repeat WHERE id=$rep_id";

$res = sql_query($sql);
if (! $res) fatal_error(1, sql_error());
if (sql_count($res) != 1) fatal_error(1, get_vocab("repeat_id") . $rep_id . get_vocab("not_found"));

$row = sql_row($res, 0);
sql_free($res);

$rep_type = $row[0];
if($edit_type == "series")
{
$start_day = (int)strftime('%d', $row[1]);
$start_month = (int)strftime('%m', $row[1]);
$start_year = (int)strftime('%Y', $row[1]);

$rep_end_day = (int)strftime('%d', $row[2]);
$rep_end_month = (int)strftime('%m', $row[2]);
$rep_end_year = (int)strftime('%Y', $row[2]);

switch($rep_type)
{
case 2:
case 6:
$rep_day[0] = $row[3][0] != "0";
$rep_day[1] = $row[3][1] != "0";
$rep_day[2] = $row[3][2] != "0";
$rep_day[3] = $row[3][3] != "0";
$rep_day[4] = $row[3][4] != "0";
$rep_day[5] = $row[3][5] != "0";
$rep_day[6] = $row[3][6] != "0";
if ($rep_type == 6)
{
$rep_num_weeks = $row[4];
}

break;

default:
$rep_day = array(0, 0, 0, 0, 0, 0, 0);
}
}
else
{
$rep_type = $row[0];
$rep_end_date = utf8_strftime('%A %d %B %Y',$row[2]);
$rep_opt = $row[3];
}
}
}
else
{
# It is a new booking. The data comes from whichever button the user clicked
$edit_type = "series";
$name = "";
$create_by = getUserName();
$description = "";
$start_day = $day;
$start_month = $month;
$start_year = $year;
$lavf = $lavf;
$lavl = $lavl;
$ampli = $ampli;
$proie = $proie;
$aconf = $aconf;
$vconf = $vconf;
$presi = $presi;
$puli = $puli;
// Avoid notices for $hour and $minute if periods is enabled
(isset($hour)) ? $start_hour = $hour : '';
(isset($minute)) ? $start_min = $minute : '';
$duration = ($enable_periods ? 60 : 60 * 60);
$type = "I";
$room_id = $room;
unset($id);
$rep_id = 0;
$rep_type = 0;
$rep_end_day = $day;
$rep_end_month = $month;
$rep_end_year = $year;
$rep_day = array(0, 0, 0, 0, 0, 0, 0);
}
# These next 4 if statements handle the situation where
# this page has been accessed directly and no arguments have
# been passed to it.
# If we have not been provided with a room_id
if( empty( $room_id ) )
{
$sql = "select id from $tbl_room limit 1";
$res = sql_query($sql);
$row = sql_row($res, 0);
$room_id = $row[0];
}
# If we have not been provided with starting time
if( empty( $start_hour ) &amp;&amp; $morningstarts &lt; 10 )
$start_hour = "0$morningstarts";
if( empty( $start_hour ) )
$start_hour = "$morningstarts";
if( empty( $start_min ) )
$start_min = "00";
// Remove "Undefined variable" notice
if (!isset($rep_num_weeks))
{
$rep_num_weeks = "";
}
$enable_periods ? toPeriodString($start_min, $duration, $dur_units) : toTimeString($duration, $dur_units);
#now that we know all the data to fill the form with we start drawing it
if(!getWritable($create_by, getUserName()))
{
showAccessDenied($day, $month, $year, $area);
exit;
}
print_header($day, $month, $year, $area);
?&gt;
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
// do a little form verifying
function validate_and_submit ()
{
// null strings and spaces only strings not allowed
if(/(^$)|(^\s+$)/.test(document.forms["main"].name.value))
{
alert ( "&lt;?php echo get_vocab("you_have_not_entered") . '\n' . get_vocab("brief_description") ?&gt;");
return false;
}
&lt;?php if( ! $enable_periods ) { ?&gt;
h = parseInt(document.forms["main"].hour.value);
m = parseInt(document.forms["main"].minute.value);
if(h &gt; 23 || m &gt; 59)
{
alert ("&lt;?php echo get_vocab("you_have_not_entered") . '\n' . get_vocab("valid_time_of_day") ?&gt;");
return false;
}
&lt;?php } ?&gt;
// check form element exist before trying to access it
if( document.forms["main"].id )
i1 = parseInt(document.forms["main"].id.value);
else
i1 = 0;
i2 = parseInt(document.forms["main"].rep_id.value);
if ( document.forms["main"].rep_num_weeks)
{
n = parseInt(document.forms["main"].rep_num_weeks.value);
}
if ((!i1 || (i1 &amp;&amp; i2)) &amp;&amp; document.forms["main"].rep_type &amp;&amp; document.forms["main"].rep_type[6].checked &amp;&amp; (!n || n &lt; 2))
{
alert("&lt;?php echo get_vocab("you_have_not_entered") . '\n' . get_vocab("useful_n-weekly_value") ?&gt;");
return false;
}
// check that a room(s) has been selected
// this is needed as edit_entry_handler does not check that a room(s)
// has been chosen
if( document.forms["main"].elements['rooms[]'].selectedIndex == -1 )
{
alert("&lt;?php echo get_vocab("you_have_not_selected") . '\n' . get_vocab("valid_room") ?&gt;");
return false;
}
// Form submit can take some times, especially if mails are enabled and
// there are more than one recipient. To avoid users doing weird things
// like clicking more than one time on submit button, we hide it as soon
// it is clicked.
document.forms["main"].save_button.disabled="true";
// would be nice to also check date to not allow Feb 31, etc...
document.forms["main"].submit();
return true;
}
function OnAllDayClick(allday) // Executed when the user clicks on the all_day checkbox.
{
form = document.forms["main"];
if (allday.checked) // If checking the box...
{
&lt;?php if( ! $enable_periods ) { ?&gt;
form.hour.value = "00";
form.minute.value = "00";
&lt;?php } ?&gt;
if (form.dur_units.value!="days") // Don't change it if the user already did.
{
form.duration.value = "1";
form.dur_units.value = "days";
}
}
}
&lt;/SCRIPT&gt;
&lt;h2&gt;&lt;?php echo isset($id) ? ($edit_type == "series" ? get_vocab("editseries") : get_vocab("editentry")) : get_vocab("addentry"); ?&gt;&lt;/H2&gt;
&lt;FORM NAME="main" ACTION="edit_entry_handler.php" METHOD="GET"&gt;
&lt;TABLE width="80%" BORDER=0&gt;
&lt;TR&gt;&lt;TD width="48" CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("namebooker")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD width="619" colspan="3" CLASS=CL&gt;&lt;INPUT NAME="name" SIZE=40 VALUE="&lt;?php echo htmlspecialchars($name,ENT_NOQUOTES) ?&gt;"&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;&lt;TD CLASS=TR&gt;&lt;B&gt;&lt;?php echo get_vocab("fulldescription")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=TL&gt;&lt;TEXTAREA NAME="description" ROWS=8 COLS=40 WRAP="virtual"&gt;&lt;?php echo
htmlspecialchars ( $description ); ?&gt;&lt;/TEXTAREA&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("date")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;
&lt;?php genDateSelector("", $start_day, $start_month, $start_year) ?&gt; &lt;/TD&gt;
&lt;/TR&gt;
&lt;?php if(! $enable_periods ) { ?&gt;
&lt;TR&gt;&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("time")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;&lt;INPUT NAME="hour" SIZE=2 VALUE="&lt;?php if (!$twentyfourhour_format &amp;&amp; ($start_hour &gt; 12)){ echo ($start_hour - 12);} else { echo $start_hour;} ?&gt;" MAXLENGTH=2&gt;:&lt;INPUT NAME="minute" SIZE=2 VALUE="&lt;?php echo $start_min;?&gt;" MAXLENGTH=2&gt;
&lt;?php
if (!$twentyfourhour_format)
{
$checked = ($start_hour &lt; 12) ? "checked" : "";
echo "&lt;INPUT NAME=\"ampm\" type=\"radio\" value=\"am\" $checked&gt;".utf8_strftime("%p",mktime(1,0,0,1,1,2000));
$checked = ($start_hour &gt;= 12) ? "checked" : "";
echo "&lt;INPUT NAME=\"ampm\" type=\"radio\" value=\"pm\" $checked&gt;".utf8_strftime("%p",mktime(13,0,0,1,1,2000));
}
?&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;?php } else { ?&gt;
&lt;TR&gt;&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("period")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;
&lt;SELECT NAME="period"&gt;
&lt;?php
foreach ($periods as $p_num =&gt; $p_val)
{
echo "&lt;OPTION VALUE=$p_num";
if( ( isset( $period ) &amp;&amp; $period == $p_num ) || $p_num == $start_min)
echo " SELECTED";
echo "&gt;$p_val";
}
?&gt;
&lt;/SELECT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;?php } ?&gt;
&lt;TR&gt;&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("duration");?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;&lt;INPUT NAME="duration" SIZE=7 VALUE="&lt;?php echo $duration;?&gt;"&gt;
&lt;SELECT NAME="dur_units"&gt;
&lt;?php
if( $enable_periods )
$units = array("periods", "days");
else
$units = array("minutes", "hours", "days", "weeks");
while (list(,$unit) = each($units))
{
echo "&lt;OPTION VALUE=$unit";
if ($dur_units == get_vocab($unit)) echo " SELECTED";
echo "&gt;".get_vocab($unit);
}
?&gt;
&lt;/SELECT&gt;
&lt;INPUT NAME="all_day" TYPE="checkbox" VALUE="yes" onClick="OnAllDayClick(this)"&gt;&lt;?php echo get_vocab("all_day"); ?&gt;&lt;/TD&gt;&lt;/TR&gt;
 
&lt;?php
# Determine the area id of the room in question first
$sql = "select area_id from $tbl_room where id=$room_id";
$res = sql_query($sql);
$row = sql_row($res, 0);
$area_id = $row[0];
# determine if there is more than one area
$sql = "select id from $tbl_area";
$res = sql_query($sql);
$num_areas = sql_count($res);
# if there is more than one area then give the option
# to choose areas.
if( $num_areas &gt; 1 ) {
?&gt;
&lt;script language="JavaScript"&gt;
&lt;!--
function changeRooms( formObj )
{
areasObj = eval( "formObj.areas" );
area = areasObj[areasObj.selectedIndex].value
roomsObj = eval( "formObj.elements['rooms[]']" )
// remove all entries
for (i=0; i &lt; (roomsObj.length); i++)
{
roomsObj.options[i] = null
}
// add entries based on area selected
switch (area){
&lt;?php
# get the area id for case statement
$sql = "select id, area_name from $tbl_area order by area_name";
$res = sql_query($sql);
if ($res) for ($i = 0; ($row = sql_row($res, $i)); $i++)
{
print " case \"".$row[0]."\":\n";
# get rooms for this area
$sql2 = "select id, room_name from $tbl_room where area_id='".$row[0]."' order by room_name";
$res2 = sql_query($sql2);
if ($res2) for ($j = 0; ($row2 = sql_row($res2, $j)); $j++)
{
print " roomsObj.options[$j] = new Option(\"".str_replace('"','\\"',$row2[1])."\",".$row2[0] .")\n";
}
# select the first entry by default to ensure
# that one room is selected to begin with
print " roomsObj.options[0].selected = true\n";
print " break\n";
}
?&gt;
} //switch
}
// create area selector if javascript is enabled as this is required
// if the room selector is to be updated.
this.document.writeln("&lt;tr&gt;&lt;td class=CR&gt;&lt;b&gt;&lt;?php echo get_vocab("areas") ?&gt;:&lt;/b&gt;&lt;/td&gt;&lt;td class=CL valign=top&gt;");
this.document.writeln(" &lt;select name=\"areas\" onChange=\"changeRooms(this.form)\"&gt;");
&lt;?php
# get list of areas
$sql = "select id, area_name from $tbl_area order by area_name";
$res = sql_query($sql);
if ($res) for ($i = 0; ($row = sql_row($res, $i)); $i++)
{
$selected = "";
if ($row[0] == $area_id) {
$selected = "SELECTED";
}
print "this.document.writeln(\" &lt;option $selected value=\\\"".$row[0]."\\\"&gt;".$row[1]."\")\n";
}
?&gt;
this.document.writeln(" &lt;/select&gt;");
this.document.writeln("&lt;/td&gt;&lt;/tr&gt;");
// --&gt;
&lt;/script&gt;
&lt;?php
} # if $num_areas
?&gt;
&lt;tr&gt;&lt;td class=CR&gt;&lt;b&gt;&lt;?php echo get_vocab("rooms") ?&gt;:&lt;/b&gt;&lt;/td&gt;
&lt;td colspan="3" valign=top class=CL&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;select name="rooms[]" multiple="yes"&gt;
&lt;?php
# select the rooms in the area determined above
$sql = "select id, room_name from $tbl_room where area_id=$area_id order by room_name";
$res = sql_query($sql);
 
if ($res) for ($i = 0; ($row = sql_row($res, $i)); $i++)
{
$selected = "";
if ($row[0] == $room_id) {
$selected = "SELECTED";
}
echo "&lt;option $selected value=\"".$row[0]."\"&gt;".$row[1];
// store room names for emails
$room_names[$i] = $row[1];
}
?&gt;
&lt;/select&gt;&lt;/td&gt;&lt;td&gt;&lt;?php echo get_vocab("ctrl_click") ?&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;TR&gt;&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("type")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;&lt;SELECT NAME="type"&gt;
&lt;?php
for ($c = "A"; $c &lt;= "Z"; $c++)
{
if (!empty($typel[$c]))
echo "&lt;OPTION VALUE=$c" . ($type == $c ? " SELECTED" : "") . "&gt;$typel[$c]\n";
}
?&gt;&lt;/SELECT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;?php if($edit_type == "series") { ?&gt;
&lt;TR&gt;
&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("rep_type")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;
&lt;?php
for($i = 0; isset($vocab["rep_type_$i"]); $i++)
{
echo "&lt;INPUT NAME=\"rep_type\" TYPE=\"RADIO\" VALUE=\"" . $i . "\"";
if($i == $rep_type)
echo " CHECKED";
echo "&gt;" . get_vocab("rep_type_$i") . "\n";
}
?&gt; &lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("rep_end_date")?&gt;&lt;/B&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;&lt;?php genDateSelector("rep_end_", $rep_end_day, $rep_end_month, $rep_end_year) ?&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("rep_rep_day")?&gt;&lt;/B&gt; &lt;?php echo get_vocab("rep_for_weekly")?&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;
&lt;?php
# Display day name checkboxes according to language and preferred weekday start.
for ($i = 0; $i &lt; 7; $i++)
{
$wday = ($i + $weekstarts) % 7;
echo "&lt;INPUT NAME=\"rep_day[$wday]\" TYPE=CHECKBOX";
if ($rep_day[$wday]) echo " CHECKED";
echo "&gt;" . day_name($wday) . "\n";
}
?&gt; &lt;/TD&gt;
&lt;/TR&gt;
&lt;?php
}
else
{
$key = "rep_type_" . (isset($rep_type) ? $rep_type : "0");
echo "&lt;tr&gt;&lt;td class=\"CR\"&gt;&lt;b&gt;".get_vocab("rep_type")."&lt;/b&gt;&lt;/td&gt;&lt;td class=\"CL\"&gt;".get_vocab($key)."&lt;/td&gt;&lt;/tr&gt;\n";
if(isset($rep_type) &amp;&amp; ($rep_type != 0))
{
$opt = "";
if ($rep_type == 2)
{
# Display day names according to language and preferred weekday start.
for ($i = 0; $i &lt; 7; $i++)
{
$wday = ($i + $weekstarts) % 7;
if ($rep_opt[$wday]) $opt .= day_name($wday) . " ";
}
}
if($opt)
echo "&lt;tr&gt;&lt;td class=\"CR\"&gt;&lt;b&gt;".get_vocab("rep_rep_day")."&lt;/b&gt;&lt;/td&gt;&lt;td class=\"CL\"&gt;$opt&lt;/td&gt;&lt;/tr&gt;\n";
echo "&lt;tr&gt;&lt;td class=\"CR\"&gt;&lt;b&gt;".get_vocab("rep_end_date")."&lt;/b&gt;&lt;/td&gt;&lt;td class=\"CL\"&gt;$rep_end_date&lt;/td&gt;&lt;/tr&gt;\n";
}
}
/* We display the rep_num_weeks box only if:
- this is a new entry ($id is not set)
Xor
- we are editing an existing repeating entry ($rep_type is set and
$rep_type != 0 and $edit_type == "series" )
*/
if ( ( !isset( $id ) ) Xor ( isset( $rep_type ) &amp;&amp; ( $rep_type != 0 ) &amp;&amp; ( "series" == $edit_type ) ) )
{
?&gt;
&lt;TR&gt;
&lt;TD CLASS=CR&gt;&lt;B&gt;&lt;?php echo get_vocab("rep_num_weeks")?&gt;&lt;/B&gt; &lt;?php echo get_vocab("rep_for_nweekly")?&gt;&lt;/TD&gt;
&lt;TD colspan="3" CLASS=CL&gt;&lt;p&gt;
&lt;INPUT TYPE=TEXT NAME="rep_num_weeks" VALUE="&lt;?php echo $rep_num_weeks?&gt;"&gt;
&lt;/p&gt; &lt;/TR&gt;
&lt;?php } ?&gt;
&lt;TR&gt;&lt;TD CLASS=CR&gt;&lt;b&gt;&lt;/SELECT&gt;
&lt;?php echo get_vocab("lavf"); ?&gt;&lt;/b&gt;&lt;input name="lavf" type="checkbox" value="Si" onclick="lavf" /&gt;
&lt;/TD&gt;
&lt;TD CLASS=CR&gt;&lt;b&gt;&lt;/SELECT&gt;
&lt;?php echo get_vocab("lavl"); ?&gt;&lt;/b&gt;&lt;input name="lavl" type="checkbox" value="Si" onclick="lavl" /&gt;
&lt;/TD&gt;
&lt;TD CLASS=CR&gt;&lt;/SELECT&gt;&lt;b&gt;
&lt;?php echo get_vocab("proie"); ?&gt;&lt;/b&gt;&lt;input name="proie" type="checkbox" value="Si" onclick="proie" /&gt;
&lt;/TD&gt;
&lt;TD CLASS=CR&gt;&lt;/SELECT&gt;&lt;b&gt;
&lt;?php echo get_vocab("ampli"); ?&gt;&lt;/b&gt;&lt;input name="ampli" type="checkbox" value="Si" onclick="ampli" /&gt;
&lt;/TD&gt;
&lt;TR&gt;&lt;TD CLASS=CR&gt;&lt;b&gt;&lt;/SELECT&gt;
&lt;?php echo get_vocab("aconf"); ?&gt;&lt;/b&gt;&lt;input name="aconf" type="checkbox" value="Si" onclick="aconf" /&gt;
&lt;/TD&gt;
&lt;TD CLASS=CR&gt;&lt;b&gt;&lt;/SELECT&gt;
&lt;?php echo get_vocab("vconf"); ?&gt;&lt;/b&gt;&lt;input name="vconf" type="checkbox" value="Si" onclick="vconf" /&gt;
&lt;/TD&gt;
&lt;TD CLASS=CR&gt;&lt;/SELECT&gt;&lt;b&gt;
&lt;?php echo get_vocab("presi"); ?&gt;&lt;/b&gt;&lt;input name="presi" type="checkbox" value="Si" onclick="presi" /&gt;
&lt;/TD&gt;
&lt;TD CLASS=CR&gt;&lt;/SELECT&gt;&lt;b&gt;
&lt;?php echo get_vocab("puli"); ?&gt;&lt;/b&gt;&lt;input name="puli" type="checkbox" value="Si" onclick="puli" /&gt;
&lt;/TD&gt;
&lt;TR&gt;
&lt;TD colspan=4 align=center&gt;
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
document.writeln ( '&lt;INPUT TYPE="button" NAME="save_button" VALUE="&lt;?php echo get_vocab("save")?&gt;" ONCLICK="validate_and_submit()"&gt;' );
&lt;/SCRIPT&gt;
&lt;NOSCRIPT&gt;
&lt;INPUT TYPE="submit" VALUE="&lt;?php echo get_vocab("save")?&gt;"&gt;
&lt;/NOSCRIPT&gt; &lt;/TD&gt;&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;INPUT TYPE=HIDDEN NAME="returl" VALUE="&lt;?php echo $HTTP_REFERER?&gt;"&gt;
&lt;!--INPUT TYPE=HIDDEN NAME="room_id" VALUE="&lt;?php echo $room_id?&gt;"--&gt;
&lt;INPUT TYPE=HIDDEN NAME="create_by" VALUE="&lt;?php echo $create_by?&gt;"&gt;
&lt;INPUT TYPE=HIDDEN NAME="rep_id" VALUE="&lt;?php echo $rep_id?&gt;"&gt;
&lt;INPUT TYPE=HIDDEN NAME="edit_type" VALUE="&lt;?php echo $edit_type?&gt;"&gt;
&lt;?php if(isset($id)) echo "&lt;INPUT TYPE=HIDDEN NAME=\"id\" VALUE=\"$id\"&gt;\n";
?&gt;
&lt;/FORM&gt;
&lt;?php include "trailer.inc" ?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/656228</link><guid isPermaLink="true">https://dev.connect.gt/post/656228</guid><dc:creator><![CDATA[linno]]></dc:creator><pubDate>Fri, 21 Dec 2007 20:55:32 GMT</pubDate></item><item><title><![CDATA[Reply to Meeting Room Booking System (MRBS) on Fri, 21 Dec 2007 20:34:53 GMT]]></title><description><![CDATA[<p dir="auto">posta un po' di codice per aiutarci a capire <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/656226</link><guid isPermaLink="true">https://dev.connect.gt/post/656226</guid><dc:creator><![CDATA[massimux]]></dc:creator><pubDate>Fri, 21 Dec 2007 20:34:53 GMT</pubDate></item></channel></rss>