コード例 #1
0
ファイル: event.php プロジェクト: pvidali/BCSR-1
    event_series($myEvnt['SeriesID'], $myEvnt['Date']);
    ?>
<br />
	<?php 
}
if ($myEvnt['Contact'] . $myEvnt['Contact_Email'] . $myEvnt['Contact_Phone'] . $myEvnt['Contact_URL'] != '') {
    ?>
			<h2><?php 
    echo event_lang('Contact');
    ?>
</h2>
			<?php 
    echo $myEvnt['Contact'] != '' ? $myEvnt['Contact'] . '<br />' : '';
    ?>
			<?php 
    echo $myEvnt['Contact_Email'] != '' ? cleanEmailLink($myEvnt['Contact_Email'], $myEvnt['Title'], event_lang('Email') . ' ') . '<br />' : '';
    ?>
			<?php 
    echo $myEvnt['Contact_Phone'] != '' ? event_lang('Phone') . ' ' . $myEvnt['Contact_Phone'] . '<br />' : '';
    ?>
			<?php 
    echo $myEvnt['Contact_URL'] != '' ? event_lang('Website') . ' <a href="' . $myLnks['Event_URL'] . '" target="_blank">' . event_lang('ClickToVisit') . '</a><br />' : '';
    ?>

	<?php 
}
if ($myEvnt['Cost'] != '') {
    ?>
			<h2><?php 
    echo event_lang('Cost');
    ?>
コード例 #2
0
ファイル: location.php プロジェクト: pvidali/BCSR-1
echo $myLoc['Image'] != '' ? '<img src="' . $myLoc['Image'] . '" id="limage_p" />' : '';
echo $myLoc['Description'];
?>
</span>
			</div>
			<div id="detail_left">
		<?php 
if ($myLoc['Email'] . $myLoc['Phone'] . $myLoc['Link_URL'] != '') {
    ?>
				<h2><?php 
    echo location_lang('Contact');
    ?>
</h2>

				<?php 
    echo $myLoc['Email'] != '' ? cleanEmailLink($myLoc['Email'], '', location_lang('Email') . ' ') . '<br />' : '';
    ?>
				<?php 
    echo $myLoc['Phone'] != '' ? location_lang('Phone') . ' ' . $myLoc['Phone'] . '<br />' : '';
    ?>
				<?php 
    echo $myLoc['Link_URL'] != '' ? location_lang('Website') . ' <a href="' . $myLoc['Link_URL'] . '" target="_blank">' . location_lang('ClickToVisit') . '</a><br />' : '';
}
if ($myLoc['Lat'] != '' && $myLoc['Lon'] != '') {
    ?>
				<h2><?php 
    echo location_lang('Geo');
    ?>
</h2>

				<?php 
コード例 #3
0
ファイル: forms.php プロジェクト: pvidali/BCSR-1
/**
 * Output RSVP Form
 * @since 2.0.0
 * @version 2.2.0
 * @return void
 */
function rsvp()
{
    global $eID, $hc_cfg, $hc_lang_rsvp, $hc_captchas, $hc_lang_config, $hc_lang_core, $result;
    $rsvp_open = strtotime(SYSDATE) >= strtotime(mysql_result($result, 0, 7)) && strtotime(SYSDATE) <= strtotime(mysql_result($result, 0, 8)) ? 1 : 0;
    $is_series = mysql_result($result, 0, 9);
    if (!hasRows($result) || $hc_cfg['IsRSVP'] == 0 || $rsvp_open == 0) {
        echo '
			<p>' . $hc_lang_rsvp['NoReg'] . '</p>
			<p><a href="' . CalRoot . '/index.php">' . $hc_lang_rsvp['FindEvent'] . '</a></p>';
        return 0;
    }
    if (isset($_GET['msg'])) {
        switch (cIn(strip_tags($_GET['msg']))) {
            case 1:
                feedback(2, $hc_lang_rsvp['Feed02']);
                break;
            case 2:
                feedback(1, $hc_lang_rsvp['Feed06']);
                break;
        }
    }
    echo '
		<p>' . $hc_lang_rsvp['RegNotice'] . '</p>
		
		<form name="frmEventRSVP" id="frmEventRSVP" method="post" action="' . CalRoot . '/event-rsvp.php" onsubmit="return validate();">
		<input type="hidden" name="eID" id="eID" value="' . ($is_series == 1 ? mysql_result($result, 0, 12) : $eID) . '" />';
    if ($hc_cfg[65] > 0 && in_array(3, $hc_captchas)) {
        echo '
		<fieldset>
			<legend>' . $hc_lang_core['CapLegend'] . '</legend>';
        buildCaptcha();
        echo '
		</fieldset>';
    }
    echo '
		<fieldset>
			<legend>' . $hc_lang_rsvp['EventDetail'] . '</legend>
			<label>' . $hc_lang_rsvp['Event'] . '</label>
			<a href="' . CalRoot . ($is_series == 1 ? '/index.php?com=series&amp;sID=' . mysql_result($result, 0, 6) : '/index.php?eID=' . $eID) . '" class="output" rel="nofollow">' . cOut(mysql_result($result, 0, 0)) . '</a>
			<label>' . $hc_lang_rsvp['Date' . $is_series] . '</label>
			<span class="output">
				' . ($is_series == 1 ? stampToDate(mysql_result($result, 0, 10), $hc_cfg[14]) . ' - ' . stampToDate(mysql_result($result, 0, 11), $hc_cfg[14]) : stampToDate(mysql_result($result, 0, 1), $hc_cfg[14])) . '
			</span>';
    if (mysql_result($result, 0, 3) == 0) {
        $time = mysql_result($result, 0, 2) != '' ? stampToDate(mysql_result($result, 0, 2), $hc_cfg[23]) : '';
    } else {
        $time = mysql_result($result, 0, 3) == 1 ? $hc_lang_rsvp['AllDay'] : $hc_lang_rsvp['TBA'];
    }
    echo '
			<label>' . $hc_lang_rsvp['Time'] . '</label>
			<span class="output">' . $time . '</span>
			<label>' . $hc_lang_rsvp['Contact'] . '</label>
			<span class="output">';
    cleanEmailLink(cOut(mysql_result($result, 0, 5)), cOut(mysql_result($result, 0, 0)), cOut(mysql_result($result, 0, 4)) . ' - ');
    echo '
			</span>
		</fieldset>
		<fieldset>
			<legend>' . $hc_lang_rsvp['YourReg'] . '</legend>
			<label for="hc_f1">' . $hc_lang_rsvp['Name'] . '</label>
			<input name="hc_f1" id="hc_f1" type="text" size="25" maxlength="50" placeholder="' . $hc_lang_rsvp['PlaceName'] . '" required="required" value="" />
			<label for="hc_f2">' . $hc_lang_rsvp['Email'] . '</label>
			<input name="hc_f2" id="hc_f2" type="email" size="35" maxlength="75" placeholder="' . $hc_lang_rsvp['PlaceEmail'] . '" required="required" value="" />
			<label for="hc_f3">' . $hc_lang_rsvp['Phone'] . '</label>
			<input name="hc_f3" id="hc_f3" type="tel" size="20" maxlength="25" placeholder="' . $hc_lang_rsvp['PlacePhone'] . '" value="" />
			<label for="hc_f7">' . $hc_lang_rsvp['PartySize'] . '</label>
			<select name="hc_f7" id="hc_f7">
				<option value="0">' . $hc_lang_rsvp['Alone'] . '</option>
				<option value="1">' . $hc_lang_rsvp['Myself'] . ' +1</option>
				<option value="2">' . $hc_lang_rsvp['Myself'] . ' +2</option>
				<option value="3">' . $hc_lang_rsvp['Myself'] . ' +3</option>
				<option value="4">' . $hc_lang_rsvp['Myself'] . ' +4</option>
				<option value="5">' . $hc_lang_rsvp['Myself'] . ' +5</option>
				<option value="6">' . $hc_lang_rsvp['Myself'] . ' +6</option>
				<option value="7">' . $hc_lang_rsvp['Myself'] . ' +7</option>
				<option value="8">' . $hc_lang_rsvp['Myself'] . ' +8</option>
				<option value="9">' . $hc_lang_rsvp['Myself'] . ' +9</option>
			</select>
			<label for="hc_f4">' . $hc_lang_rsvp['Address'] . '</label>
			<input name="hc_f4" id="hc_f4" type="text" size="20" maxlength="75" placeholder="' . $hc_lang_rsvp['PlaceAddress'] . '" value="" />
			<label for="hc_f5">' . $hc_lang_rsvp['Address2'] . '</label>
			<input name="hc_f5" id="hc_f5" type="text" size="20" maxlength="75" placeholder="' . $hc_lang_rsvp['PlaceAddress2'] . '" value="" />';
    $inputs = array(1 => array('City', 'hc_f6', 'PlaceCity'), 2 => array('Postal', 'hc_f8', 'PlacePostal'));
    $first = $hc_lang_config['AddressType'] == 1 ? 1 : 2;
    $second = $first == 1 ? 2 : 1;
    echo '
			<label for="' . $inputs[$first][1] . '">' . $hc_lang_rsvp[$inputs[$first][0]] . '</label>
			<input name="' . $inputs[$first][1] . '" id="' . $inputs[$first][1] . '" value="" type="text" size="20" maxlength="50" placeholder="' . $hc_lang_rsvp[$inputs[$first][2]] . '" />';
    if ($hc_lang_config['AddressRegion'] != 0) {
        $regSelect = $hc_lang_rsvp['PlaceRegion'];
        $state = $hc_cfg[21];
        echo '
			<label for="locState">' . $hc_lang_config['RegionLabel'] . '</label>';
        include HCLANG . '/' . $hc_lang_config['RegionFile'];
    }
    echo '
			<label for="' . $inputs[$second][1] . '">' . $hc_lang_rsvp[$inputs[$second][0]] . '</label>
			<input name="' . $inputs[$second][1] . '" id="' . $inputs[$second][1] . '" type="text" size="20" maxlength="50" placeholder="' . $hc_lang_rsvp[$inputs[$second][2]] . '" value="" />
			<label for="hc_f9">' . $hc_lang_rsvp['Country'] . '</label>
			<input name="hc_f9" id="hc_f9" type="text" size="10" maxlength="50" placeholder="' . $hc_lang_rsvp['PlaceCountry'] . '" value="" />
		</fieldset>';
    fakeFormFields();
    echo '
		<input name="submit" id="submit" type="submit" value="' . $hc_lang_rsvp['RegisterNow'] . '" />
		<input name="cancel" id="cancel" type="button" value="' . $hc_lang_rsvp['Cancel'] . '" onclick="window.location.href=\'' . CalRoot . '/index.php?eID=' . $eID . '\';return false;" />
		</form>';
}