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


PHP CommonController::insertFacilityType方法代码示例

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


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

示例1:

 }
 $childAgeFlag = 1;
 if ($data['child_allowed'] == 1) {
     if ($data['child_age_from'] > $data['child_age_to']) {
         $childAgeFlag = 0;
         $msg = !empty($msg) ? '<br />' : '' . 'Child age from should be greater than child age to.';
         $class = 'danger';
         $display = 'style="display:block"';
     }
 }
 if ($uploadFlag && $flag && $childAgeFlag) {
     $id = $commonController->insertUpdateData($data);
     $flagOk = false;
     if ($id > 0) {
         $commonController->insertAccommodationType($_POST['accommodation_type'], $id);
         $commonController->insertFacilityType($_POST['facility_type'], $id);
         $commonController->insertWorkingTime($_POST['txtWorkingTime'], $id);
         $commonController->insertEstablishmentLanguages($_POST['language_type'], $id);
         if (!empty($_FILES['imageGallery']['name'][0])) {
             $commonController->insertGalleryPhotos($_FILES['imageGallery'], $id, '../images/listings/');
         }
         if (!empty($_POST['txtGalleryVideo'])) {
             $commonController->insertGalleryVideo($_POST['txtGalleryVideo'], $id);
         }
         if (!empty($_POST['txtRoomTitle']) && count($_POST['txtRoomTitle']) > 0) {
             $commonController->insertRooms(array('txtRoomTitle' => $_POST['txtRoomTitle'], 'ddlRoomType' => $_POST['ddlRoomType'], 'txtRoomRate' => $_POST['txtRoomRate'], 'txtRoomDescription' => $_POST['txtRoomDescription'], 'txtRoomMinimumStay' => $_POST['txtRoomMinimumStay'], 'txtRoomFacilities' => $_POST['txtRoomFacilities']), $id);
         }
         $flagOk = true;
     }
     if ($flagOk) {
         $msg = 'Saved successfully';
开发者ID:aniketbasu14,项目名称:snoozeover,代码行数:31,代码来源:add_edit_establishments.php


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