当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminHelper::drawCountryCodeUL方法代码示例

本文整理汇总了PHP中AdminHelper::drawCountryCodeUL方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminHelper::drawCountryCodeUL方法的具体用法?PHP AdminHelper::drawCountryCodeUL怎么用?PHP AdminHelper::drawCountryCodeUL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AdminHelper的用法示例。


在下文中一共展示了AdminHelper::drawCountryCodeUL方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array_merge

<?php

// parsing posted data:
if (isset($_POST['dovenueedit'])) {
    $cash_admin->requestAndStore(array('cash_request_type' => 'calendar', 'cash_action' => 'editvenue', 'id' => $request_parameters[0], 'name' => $_POST['venue_name'], 'city' => $_POST['venue_city'], 'region' => $_POST['venue_region'], 'country' => $_POST['venue_country'], 'address1' => $_POST['venue_address1'], 'address2' => $_POST['venue_address2'], 'postalcode' => $_POST['venue_postalcode'], 'url' => $_POST['venue_url'], 'phone' => $_POST['venue_phone']), 'venueeditattempt');
}
$current_venue_response = $cash_admin->requestAndStore(array('cash_request_type' => 'calendar', 'cash_action' => 'getvenue', 'venue_id' => $request_parameters[0]), 'getvenue');
$current_venue = $current_venue_response['payload'];
if (is_array($current_venue)) {
    $cash_admin->page_data = array_merge($cash_admin->page_data, $current_venue);
}
$cash_admin->page_data['form_state_action'] = 'dovenueedit';
$cash_admin->page_data['venue_button_text'] = 'Edit the venue';
$cash_admin->page_data['country_options'] = AdminHelper::drawCountryCodeUL($current_venue['country']);
$cash_admin->setPageContentTemplate('calendar_venues_details');
开发者ID:blacktire,项目名称:DIY,代码行数:15,代码来源:calendar_venues_edit.php

示例2:

		<label for="venue_region">State / Provence / Region</label><br />
		<input type="text" id="venue_region" name="venue_region" value="<?php 
    echo $current_venue['region'];
    ?>
" />
	</div>

	<div class="row_seperator">.</div>
	<div class="col_oneoftwo">
		<label for="venue_postalcode">Postal Code</label><br />
		<input type="text" id="venue_postalcode" name="venue_postalcode" value="<?php 
    echo $current_venue['postalcode'];
    ?>
" />
	</div>
	<div class="col_oneoftwo lastcol">
		<label for="venue_country">Country</label><br />
		<select id="venue_country" name="venue_country">
			<?php 
    echo AdminHelper::drawCountryCodeUL($current_venue['country']);
    ?>
		</select>
	</div>

	<div class="row_seperator">.</div><br />
	<input class="button" type="submit" value="Edit The Venue" />

</form>

<?php 
}
开发者ID:nodots,项目名称:DIY,代码行数:31,代码来源:calendar_venues_edit.php

示例3:

    $addvenue_address1 = '';
    $addvenue_address2 = '';
    $addvenue_postalcode = '';
    $addvenue_url = '';
    $addvenue_phone = '';
    if (isset($_POST['venue_address1'])) {
        $addvenue_address1 = $_POST['venue_address1'];
    }
    if (isset($_POST['venue_address2'])) {
        $addvenue_address2 = $_POST['venue_address2'];
    }
    if (isset($_POST['venue_postalcode'])) {
        $addvenue_postalcode = $_POST['venue_postalcode'];
    }
    if (isset($_POST['venue_url'])) {
        $addvenue_url = $_POST['venue_url'];
    }
    if (isset($_POST['venue_phone'])) {
        $addvenue_phone = $_POST['venue_phone'];
    }
    $add_response = $cash_admin->requestAndStore(array('cash_request_type' => 'calendar', 'cash_action' => 'addvenue', 'name' => $_POST['venue_name'], 'city' => $_POST['venue_city'], 'region' => $_POST['venue_region'], 'country' => $_POST['venue_country'], 'address1' => $addvenue_address1, 'address2' => $addvenue_address2, 'postalcode' => $addvenue_postalcode, 'url' => $addvenue_url, 'phone' => $addvenue_phone));
    if ($add_response['payload']) {
        AdminHelper::formSuccess('Success. Venue added.', '/calendar/venues/edit/' . $add_response['payload']);
    } else {
        AdminHelper::formFailure('Error. Something just didn\'t work right.', '/calendar/venues/add/');
    }
}
$cash_admin->page_data['form_state_action'] = 'dovenueadd';
$cash_admin->page_data['venue_button_text'] = 'Add the venue';
$cash_admin->page_data['country_options'] = AdminHelper::drawCountryCodeUL();
$cash_admin->setPageContentTemplate('calendar_venues_details');
开发者ID:JamesLinus,项目名称:platform,代码行数:31,代码来源:calendar_venues_add.php

示例4:

		</div>
		<div class="col_oneoftwo lastcol">
			<label for="venue_region">State / Provence / Region</label><br />
			<input type="text" id="venue_region" name="venue_region" value="" placeholder="Region" />
		</div>

		<div class="row_seperator">.</div>
		<div class="col_oneoftwo">
			<label for="venue_postalcode">Postal Code</label><br />
			<input type="text" id="venue_postalcode" name="venue_postalcode" value="" placeholder="Postal Code" />
		</div>
		<div class="col_oneoftwo lastcol">
			<label for="venue_country">Country</label><br />
			<select id="venue_country" name="venue_country">
				<?php 
    echo AdminHelper::drawCountryCodeUL();
    ?>
			</select>
		</div>

		<div class="row_seperator">.</div><br />
		<input class="button" type="submit" value="Add That Venue" />
	
	</form>
<?php 
} else {
    $add_venue_response = $cash_admin->getStoredResponse('venueaddattempt');
    if ($add_venue_response['status_uid'] == 'calendar_addvenue_200') {
        ?>

		<h3>Success</h3>
开发者ID:nodots,项目名称:DIY,代码行数:31,代码来源:calendar_venues_add.php


注:本文中的AdminHelper::drawCountryCodeUL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。