Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once("../../../config.php");
- //who's logged in
- $guid = "";
- if(isset($_SESSION[APP_LOGGEDIN_COOKIE_NAME])) $guid = fnFormInput($_SESSION[APP_LOGGEDIN_COOKIE_NAME]);
- //init user object
- $thisUser = new User($guid);
- $thisUser -> fnLoggedInReq($guid);
- $thisUser -> fnUpdateLastRequest($guid);
- //init page object
- $thisPage = new Page();
- //include the js file to handle "save" clicks in advanced settings (ajax request)...
- $thisPage->jsRelativeInHead = "save.js";
- //tell the "saveScreenData" js method in /cpv15.js what URL to use...
- $thisPage->jsInHead = "var ajaxURL = \"itemProperties_AJAX.php\";";
- //add some inline css (in the <head>) for 100% width...
- $inlineCSS = "";
- $inlineCSS .= "html{height:100%;width:100%;margin:0px;padding:0px;} ";
- $inlineCSS .= "body{height:100%;width:100%;margin:0px;padding:0px;} ";
- $inlineCSS .= ".contentWrapper, .contentWrap{height:100%;width:100%;margin:0px;padding:0px;} ";
- $thisPage->cssInHead = $inlineCSS;
- $dtNow = fnMySqlNow();
- $strMessage = "";
- $bolDone = false;
- $bolPassed = true;
- $bolDeleted = false;
- $appGuid = fnGetReqVal("appGuid", "", $myRequestVars);
- $BT_parentScreenItemId = fnGetReqVal("BT_parentScreenItemId", "", $myRequestVars);
- $BT_childItemId = fnGetReqVal("BT_childItemId", "", $myRequestVars);
- //need an appguid
- if($appGuid == "" || $BT_childItemId == ""){
- echo "invalid request";
- exit();
- }
- //child item object..
- $objChildItem = new Bt_item($BT_childItemId);
- $jsonVars = $objChildItem->infoArray["jsonVars"];
- //childItem properties...
- $titleText = "";
- $iconName = "";
- $iconURL ="";
- $descriptionText = "";
- $transitionType = "";
- $rowAccessoryType = "";
- //fill vars from json
- if($jsonVars != ""){
- $json = new Json;
- $decoded = $json->unserialize($jsonVars);
- if(is_object($decoded)){
- if(array_key_exists("iconName", $decoded)) $iconName = $decoded->iconName;
- if(array_key_exists("iconURL", $decoded)) $iconURL = $decoded->iconURL;
- if(array_key_exists("titleText", $decoded)) $titleText = $decoded->titleText;
- if(array_key_exists("descriptionText", $decoded)) $descriptionText = $decoded->descriptionText;
- if(array_key_exists("transitionType", $decoded)) $transitionType = $decoded->transitionType;
- if(array_key_exists("rowAccessoryType", $decoded)) $rowAccessoryType = $decoded->rowAccessoryType;
- }
- }
- ?>
- <?php echo $thisPage->fnGetPageHeaders(); ?>
- <?php echo $thisPage->fnGetBodyStart(); ?>
- <input type="hidden" name="appGuid" id="appGuid" value="<?php echo $appGuid;?>">
- <input type="hidden" name="BT_parentScreenItemId" id="BT_parentScreenItemId" value="<?php echo $BT_parentScreenItemId;?>">
- <input type="hidden" name="BT_childItemId" id="BT_childItemId" value="<?php echo $BT_childItemId;?>">
- <div class='content'>
- <fieldset class='colorLightBg minHeightShadowbox'>
- <div class='contentBox colorDarkBg'>
- <div class="contentBand colorBandBg">
- Menu Item Properties
- </div>
- <div style='padding:10px;'>
- <table cellspacing='0' cellpadding='0'>
- <tr>
- <td style="padding:10px;padding-bottom:0px;">
- <div style='padding-top:5px;'>
- <b>Icon URL</b>
-
- <img src="<?php echo APP_URL;?>/images/arr_right.gif" alt="arrow"/>
- <a href="<?php echo APP_URL;?>/bt_v15/bt_app/bt_pickerFile.php?appGuid=<?php echo $appGuid;?>&formEl=iconURL&fileNameOrURL=URL&searchFolder=/images" rel="shadowbox;height=750;width=950">Select</a>
- <br/>
- <input type='text' name="iconURL" id="iconURL" value="<?php echo fnFormOutput($iconURL);?>" /><br/>
- </div>
- <div style='padding-top:5px;'>
- <b>Icon Name</b><br/>
- <input type='text' name="iconName" id="iconName" value="<?php echo fnFormOutput($iconName);?>" /><br/>
- </div>
- <div style='padding-top:5px;'>
- <b>Row Title</b><br/>
- <input type='text' name="titleText" id="titleText" value="<?php echo fnFormOutput($titleText);?>" /><br/>
- </div>
- <div style='padding-top:5px;'>
- <b>Row Description</b><br/>
- <input type='text' name="descriptionText" id="titleText" value="<?php echo fnFormOutput($descriptionText);?>" /><br/>
- </div>
- <div style='padding-top:5px;'>
- <b>Indicator Type</b><br/>
- <select name="rowAccessoryType" id="rowAccessoryType" style="width:250px;">
- <option value="" <?php echo fnGetSelectedString($rowAccessoryType, "slideDown");?>>Default Arrow</option>
- <option value="details" <?php echo fnGetSelectedString($rowAccessoryType, "slideDown");?>>Details Indicator</option>
- <option value="none" <?php echo fnGetSelectedString($rowAccessoryType, "slideDown");?>>None</option>
- </select>
- </div>
- <div style='padding-top:5px;'>
- <b>Transition Type</b><br/>
- <select name="transitionType" id="transitionType" style="width:250px;">
- <option value="" <?php echo fnGetSelectedString($transitionType, "");?>>Default transition type</option>
- <option value="fade" <?php echo fnGetSelectedString($transitionType, "fade");?>>Fade</option>
- <option value="flip" <?php echo fnGetSelectedString($transitionType, "flip");?>>Flip</option>
- <option value="curl" <?php echo fnGetSelectedString($transitionType, "curl");?>>Curl</option>
- <option value="grow" <?php echo fnGetSelectedString($transitionType, "grow");?>>Grow</option>
- <option value="slideUp" <?php echo fnGetSelectedString($transitionType, "slideUp");?>>Slide Up</option>
- <option value="slideDown" <?php echo fnGetSelectedString($transitionType, "slideDown");?>>Slide Down</option>
- </select>
- </div>
- </td>
- </tr>
- </table>
- <div style='padding:10px;'>
- <input type='button' title="save" value="save" align='absmiddle' class="buttonSubmit" onClick="saveScreenData('childItem');return false;">
- <div id="submit_childItem" class="submit_working" style='height:100px;'> </div>
- </div>
- </div>
- </div>
- </fieldset>
- </div>
- <?php echo $thisPage->fnGetBodyEnd(); ?>
Advertisement
Add Comment
Please, Sign In to add comment