-
Posts
288 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by OmerAslan
-
-
2 hours ago, servetas said:
I am using the same code (approximately) and the only issue is with the drop down fields in the administration section. This issue is solved by replacing (in the admin/templates/pilot_details):
$sel = ($field->value === $val) ? 'sel="selected"' : '';
with:
$sel = ($field->value === $val) ? 'selected="selected"' : '';
Does the above solved the issue in the admin part?
Thanks George. Now working well.
-
1 minute ago, servetas said:
Can you paste here or send me in any way the following files:
admin/templates/pilot_details.php -and-
core/templates/profile_edit.php or lib/skins/your_skin/profile_edit.php (if exists)
admin/templates/pilot_details.php
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <form id="dialogform" action="<?php echo adminaction('/pilotadmin/viewpilots');?>" method="post"> <table id="tabledlist" class="tablesorter" style="float: left"> <thead> <tr> <th colspan="2">Edit Pilot Details</th> </tr> </thead> <tbody> <tr> <td>Avatar</td> <td> <?php $pilotcode = PilotData::GetPilotCode($pilotinfo->code, $pilotinfo->pilotid); if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'None selected'; } else { ?> <img src="<?php echo SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png';?>" /> <?php } ?> </td> </tr> <tr> <td>Pilot ID</td> <td><?php echo $pilotcode ?></td> </tr> <tr> <td>First Name</td> <td><input type="text" name="firstname" value="<?php echo $pilotinfo->firstname;?>" /></td> </tr> <tr> <td>Last Name</td> <td><input type="text" name="lastname" value="<?php echo $pilotinfo->lastname;?>" /></td> </tr> <tr> <td>Email Address</td> <td><input type="text" name="email" value="<?php echo $pilotinfo->email;?>" /></td> </tr> <tr> <td>Airline</td> <td> <select name="code"> <?php $allairlines = OperationsData::GetAllAirlines(); foreach($allairlines as $airline) { if($pilotinfo->code == $airline->code) $sel = ' selected'; else $sel = ''; echo '<option value="'.$airline->code.'" ' .$sel.'>'.$airline->name.'</option>'; } ?> </select> </td> </tr> <tr> <td>Location</td> <td><select name="location"> <?php foreach($countries as $countryCode=>$countryName) { if($pilotinfo->location == $countryCode) $sel = 'selected="selected"'; else $sel = ''; echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>'; } ?> </select> </td> </tr> <tr> <td>Hub</td> <td> <select name="hub"> <?php $allhubs = OperationsData::GetAllHubs(); foreach($allhubs as $hub) { if($pilotinfo->hub == $hub->icao) $sel = ' selected'; else $sel = ''; echo '<option value="'.$hub->icao.'" '.$sel.'>'.$hub->icao.' - ' . $hub->name .'</option>'; } ?> </select> </td> </tr> <tr> <td>Current Rank</td> <td> <?php if(Config::Get('RANKS_AUTOCALCULATE') == false) { $allranks = RanksData::GetAllRanks(); echo '<select name="rank">'; foreach($allranks as $rank) { $selected = ($pilotinfo->rank == $rank->rank) ? "selected=\"selected\"": ''; echo "<option value=\"{$rank->rankid}\" {$selected}>{$rank->rank}</option>"; } echo '</select>'; } else { echo $pilotinfo->rank; } ?></td> </tr> <tr> <td>Date Joined</td> <td><?php echo date(DATE_FORMAT, strtotime($pilotinfo->joindate));?></td> </tr> <tr> <td>Last Login</td> <td><?php echo date(DATE_FORMAT, strtotime($pilotinfo->lastlogin));?></td> </tr> <tr> <td>Last Flight</td> <td><?php echo date(DATE_FORMAT, strtotime($pilotinfo->lastpirep));?></td> </tr> <tr> <td>Total Flights</td> <td><input type="text" name="totalflights" value="<?php echo $pilotinfo->totalflights;?>" /></td> </tr> <tr> <td>Total Hours</td> <td><?php echo $pilotinfo->totalhours;?> <input type="hidden" name="totalhours" value="<?php echo $pilotinfo->totalhours;?>" /> </td> </tr> <tr> <td>Transfer Hours</td> <td><input type="text" name="transferhours" value="<?php echo $pilotinfo->transferhours;?>" /></td> </tr> <tr> <td>Total Pay</td> <td><input type="text" name="totalpay" value="<?php echo $pilotinfo->totalpay;?>" /></td> </tr> <tr> <td>Pay Adjustment</td> <td><input type="text" name="payadjust" value="<?php echo $pilotinfo->payadjust;?>" /></td> </tr> <tr> <td>Pilot active?</td> <td><select name="retired"> <?php $pilotStatuses = Config::get('PILOT_STATUS_TYPES'); foreach($pilotStatuses as $id => $info) { if($pilotinfo->retired == $id) { $active = 'selected'; } else { $active = ''; } echo '<option value="'.$id.'" '.$active.'>'.$info['name'].'</option>'; } ?> </select> <input type="checkbox" name="resend_email" value="true" />Check to resend the welcome email </td> </tr> <tr> <td>Admin Comment</td> <td><textarea style="width: 100%; height: 70px;" name="comment"><?php echo $pilotinfo->comment;?></textarea> </tr> <tr> <?php if($customfields) { foreach($customfields as $field) { ?> <tr> <td><?php echo $field->title;?></td> <td> <?php if($field->type == 'dropdown') { echo "<select name=\"{$field->fieldname}\">"; $values = explode(',', $field->fieldvalues); if(is_array($values)) { foreach($values as $val) { $sel = ($field->value === $val) ? 'sel="selected"' : ''; $val = trim($val); echo "<option value=\"{$val}\" {$sel} >{$val}</option>"; } } echo '</select>'; } elseif($field->type == 'textarea') { echo '<textarea name="'.$field->fieldname.'" style="width: 400px; height: 100px" class="customfield_textarea">'.$field->value.'</textarea>'; } else { echo '<input type="text" name="'.$field->fieldname.'" value="'.$field->value.'" />'; } ?> </td> </tr> <?php } } ?> <tr> <td colspan="2"> <input type="hidden" name="pilotid" value="<?php echo $pilotinfo->pilotid;?>" /> <input type="hidden" name="action" value="saveprofile" /> <input type="submit" name="submit" value="Save Changes" /> <div id="results"></div> </td> </tr> </tbody> </table> </form>
core/templates/profile_edit.php
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <h3>Edit Profile</h3> <form action="<?php echo url('/profile');?>" method="post" enctype="multipart/form-data"> <dl> <dt>Name</dt> <dd><?php echo $pilot->firstname . ' ' . $pilot->lastname;?></dd> <dt>Airline</dt> <dd><?php echo $pilot->code?> <p>To request a change, contact your admin</p> </dd> <dt>Email Address</dt> <dd><input type="text" name="email" value="<?php echo $pilot->email;?>" /> <?php if(isset($email_error) && $email_error == true) echo '<p class="error">Please enter your email address</p>'; ?> </dd> <dt>Location</dt> <dd><select name="location"> <?php foreach($countries as $countryCode=>$countryName) { if($pilot->location == $countryCode) $sel = 'selected="selected"'; else $sel = ''; echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>'; } ?> </select> <?php if(isset($location_error) && $location_error == true) echo '<p class="error">Please enter your location</p>'; ?> </dd> <dt>Signature Background</dt> <dd><select name="bgimage"> <?php foreach($bgimages as $image) { if($pilot->bgimage == $image) $sel = 'selected="selected"'; else $sel = ''; echo '<option value="'.$image.'" '.$sel.'>'.$image.'</option>'; } ?> </select> </dd> <?php if($customfields) { foreach($customfields as $field) { echo '<dt>'.$field->title.'</dt> <dd>'; if($field->type == 'dropdown') { $field_values = SettingsData::GetField($field->fieldid); $values = explode(',', $field_values->value); echo "<select name=\"{$field->fieldname}\">"; if(is_array($values)) { foreach($values as $val) { $val = trim($val); if($val == $field->value) $sel = " selected "; else $sel = ''; echo "<option value=\"{$val}\" {$sel}>{$val}</option>"; } } echo '</select>'; } elseif($field->type == 'textarea') { echo '<textarea name="'.$field->fieldname.'" class="customfield_textarea">'.$field->value.'</textarea>'; } else { echo '<input type="text" name="'.$field->fieldname.'" value="'.$field->value.'" />'; } echo '</dd>'; } } ?> <dt>Avatar:</dt> <dd><input type="hidden" name="MAX_FILE_SIZE" value="<?php echo Config::Get('AVATAR_FILE_SIZE');?>" /> <input type="file" name="avatar" size="40"> <p>Your image will be resized to <?php echo Config::Get('AVATAR_MAX_HEIGHT').'x'.Config::Get('AVATAR_MAX_WIDTH');?>px</p> </dd> <dt>Current Avatar:</dt> <dd><?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'None selected'; } else { ?> <img src="<?php echo SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png';?>" /></dd> <?php } ?> <dt></dt> <dd><input type="hidden" name="action" value="saveprofile" /> <input type="submit" name="submit" value="Save Changes" /></dd> </dl> </form>
lib/skins/your_skin/profile_edit.php
<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <div class="wraper container-fluid"> <div class="row"> <div class="col-sm-12"> <div class="bg-picture text-center" style="background-image:url(https://www.assertivestyle.com/toplama/img/Crew.jpg)"> <div class="bg-picture-overlay"></div> <div class="profile-info-name"> <img src="https://www.assertivestyle.com/toplama/img/pilot-512.png" class="thumb-lg img-circle img-thumbnail" alt="profile-image"> <h3 class="text-white"><?php echo Auth::$userinfo->firstname; ?> <?php echo Auth::$userinfo->lastname; ?></h3> </div> </div> <!--/ meta --> </div> </div> <div class="row user-tabs"> <div class="col-lg-9 col-md-9 "> <ul class="nav nav-tabs tabs"> <li class="active tab"> <a href="#home-2" data-toggle="tab" aria-expanded="false" class="active"> <span class="visible-xs"><i class="fa fa-home"></i></span> <span class="hidden-xs">About Me</span> </a> </li> <li class="tab" > <a href="#settings-2" data-toggle="tab" aria-expanded="false"> <span class="visible-xs"><i class="fa fa-cog"></i></span> <span class="hidden-xs">Edit Info</span> </a> </li> <li class="tab" > <a href="#home-1" data-toggle="tab" aria-expanded="false"> <span class="visible-xs"><i class="fa fa-cog"></i></span> <span class="hidden-xs">Change Password</span> </a> <!----- </li> <li class="tab" > <a href="#home-3" data-toggle="tab" aria-expanded="false"> <span class="visible-xs"><i class="fa fa-cog"></i></span> <span class="hidden-xs">View Your Stats</span> </a> </li>------------------> <div class="indicator"></div></ul> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="tab-content profile-tab-content"> <div class="tab-pane active" id="home-2"> <div class="row"> <div class="col-md-4"> <!-- Personal-Information --> <div class="panel panel-default panel-fill"> <div class="panel-heading"> <h3 class="panel-title">Personal Information</h3> </div> <div class="panel-body"> <div class="about-info-p"> <strong>Full Name</strong> <br/> <p class="text-muted"><?php echo Auth::$userinfo->firstname; ?> <?php echo Auth::$userinfo->lastname; ?></p> </div> <div class="about-info-p"> <strong>Rank</strong> <br/> <p class="text-muted"><?php echo Auth::$userinfo->rank; ?></p> </div> <div class="about-info-p m-b-0"> <strong>Pilot Number</strong> <br/> <p class="text-muted"><?php echo Auth::$userinfo->pilotid; ?></p> </div> <div class="about-info-p"> <strong>Email</strong> <br/> <p class="text-muted"><?php echo Auth::$userinfo->email; ?></p> </div> <div class="about-info-p m-b-0"> <strong>Location</strong> <br/> <p class="text-muted"><?php echo Auth::$userinfo->location; ?></p> </div> </div> </div> <!-- Personal-Information --> <!-- Languages --> <!-- Languages --> </div> <div class="col-md-8"> <!-- Personal-Information --> <!-- Personal-Information --> <div class="panel panel-default panel-fill"> <div class="panel-heading"> <h3 class="panel-title">Quick Stats</h3> </div> <div class="panel-body"> <!-- Total Hours --> <p>Total Hours: </p><?php echo Auth::$userinfo->totalhours;?><br> <p>Total Flights: </p><?php echo Auth::$userinfo->totalflights?><br> <!-- Total Transfer Hours --> <p>Transfer Hours: </p><?php echo $userinfo->transferhours?><br> <!-- Hours Until Rank Promotion --> <p>Hours Until Next Rank: </p><?php echo ($nextrank->minhours - $pilot_hours)?><br> <!-- Next Available Rank --> <p>Rank: </p><?php echo $userinfo->rank?><br> <!-- Total Virtual Money --> <p>Virtual Cash: </p><?php echo FinanceData::FormatMoney($userinfo->totalpay) ?><br> </table> </div> </div> </div> </div> </div> <div class="tab-pane" id="settings-2"> <!-- Personal-Information --> <div class="panel panel-default panel-fill"> <div class="panel-heading"> <h3 class="panel-title">Edit Profile</h3> </div> <div class="panel-body"> <h3>Edit Profile</h3> <form action="http://www.crew.aalvirtual.com/index.php/profile" method="post" enctype="multipart/form-data"> <dl> <div class="row"> <div class="col-md-6"> <dt>Name</dt> <div class="form-group"> <dd><?php echo $pilot->firstname . ' ' . $pilot->lastname;?></dd> </div> <dt>Airline</dt> <div class="form-group"> <dd><?php echo $pilot->code?> <p>To request a change, contact your admin</p> </dd> </div> <dt>Email Address</dt> <div class="form-group"> <dd><input type="text" name="email" value="<?php echo $pilot->email;?>" /> <?php if(isset($email_error) && $email_error == true) echo '<p class="error">Please enter your email address</p>'; ?> </dd> </div> <dt>Location</dt> <div class="form-group"> <dd><select name="location"> <?php foreach($countries as $countryCode=>$countryName) { if($pilot->location == $countryCode) $sel = 'selected="selected"'; else $sel = ''; echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>'; } ?> </select> <?php if(isset($location_error) && $location_error == true) echo '<p class="error">Please enter your location</p>'; ?> </dd> </div> <dt>Signature Background</dt> <div class="form-group"> <dd><select name="bgimage"> <?php foreach($bgimages as $image) { if($pilot->bgimage == $image) $sel = 'selected="selected"'; else $sel = ''; echo '<option value="'.$image.'" '.$sel.'>'.$image.'</option>'; } ?> </select> </dd> </div> </div> <div class="col-md-6"> <div class="form-group"> <?php if($customfields) { foreach($customfields as $field) { echo '<dt>'.$field->title.'</dt> <dd>'; if($field->type == 'dropdown') { $field_values = SettingsData::GetField($field->fieldid); $values = explode(',', $field_values->value); echo "<select name=\"{$field->fieldname}\">"; if(is_array($values)) { foreach($values as $val) { $val = trim($val); if($val == $field->value) $sel = " selected "; else $sel = ''; echo "<option value=\"{$val}\" {$sel}>{$val}</option>"; } } echo '</select>'; } elseif($field->type == 'textarea') { echo '<textarea class="customfield_textarea"></textarea>'; } else { echo '<input type="text" name="'.$field->fieldname.'" value="'.$field->value.'" />'; } echo '</dd>'; } } ?> </div> <dt>Avatar:</dt> <div class="form-group"> <dd><input type="hidden" name="MAX_FILE_SIZE" value="<?php echo Config::Get('AVATAR_FILE_SIZE');?>" /> <input type="file" name="avatar" size="40"> <p>Your image will be resized to <?php echo Config::Get('AVATAR_MAX_HEIGHT').'x'.Config::Get('AVATAR_MAX_WIDTH');?>px</p> </dd> </div> <dt>Current Avatar:</dt> <div class="form-group"> <dd><?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'None selected'; } else { ?> <img src="<?php echo SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png';?>" /></dd> <?php } ?> <dt></dt> </div> </div> <dd><input type="hidden" name="action" value="saveprofile" /> <button class="btn btn-primary waves-effect waves-light w-md" input type="submit" name="submit" value="Save Changes" type="submit"> save</button></dd> </div> </dl> </form> </div> </div> <!-- Personal-Information --> </div> <div class="tab-pane active" id="home-1"> <div class="row"> <div class="col-md-12"> <!-- Personal-Information --> <div class="panel panel-default panel-fill"> <div class="panel-heading"> <h3 class="panel-title">Change Password</h3> </div> <div class="panel-body"> <form action="http://www.crew.aalvirtual.com/index.php/profile" method="post"> <dl> <dt>Enter your new password</dt> <dd><input type="password" id="password" name="password1" value="" /></dd> <dt>Enter your new password again</dt> <dd><input type="password" name="password2" value="" /></dd> <dt>Enter your old password</dt> <dd><input type="password" name="oldpassword" /></dd> <dt></dt> <dd><input type="hidden" name="action" value="changepassword" /> <input type="submit" name="submit" value="Save Password" /> </dd> </dl> </form> </div> </div> <!-- Personal-Information --> <!-- Languages --> <!-- Languages --> </div> </div> </div> <div class="tab-pane active" id="home-3"> <div class="row"> <div class="col-md-12"> <h1> Your Stats</h1> <?php /* Added in 2.0! */ $chart_width = '800'; $chart_height = '250'; /* Don't need to change anything below this here */ ?> <div align="center" style="width: 100%;"> <div align="center" id="months_data"></div> </div> <br /> <div align="center" style="width: 100%;"> <div align="center" id="aircraft_data"></div> </div> <script type="text/javascript" src="http://www.crew.aalvirtual.com/lib/js/ofc/js/swfobject.js"></script> <script type="text/javascript"> swfobject.embedSWF("http://www.crew.aalvirtual.com/lib/js/ofc/open-flash-chart.swf", "months_data", "800", "250", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsmonthsdata/'.$pilot->pilotid);?>"}); <?php $chart_width = '800'; $chart_height = '300'; /* Don't need to change anything below this here */ ?> swfobject.embedSWF("http://www.crew.aalvirtual.com/lib/js/ofc/open-flash-chart.swf", "aircraft_data", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsaircraftdata/'.$pilot->pilotid);?>"}); </script> </div> </div> </div> </div> </div> </div> </div> <!-- container -->
it all exist George.
-
Hi,
All costs 0 and when i open this pages takes around 15 seconds. I don't know what i did wrong.
I see 2 errors in error log maybe this can help
[05-May-2017 13:13:48 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/....../core/classes/MainController.class.php on line 218 [05-May-2017 13:13:48 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/....../core/classes/MainController.class.php on line 21
-
12 hours ago, servetas said:
Which phpVMS version are you using? Can you share any screenshots? Do you refer to the user part or the admin part of your phpVMS system?
Hi George,
I have 5.5.2 version. Screenshot like empty space. No error. From user part and admin part the same.
-
Hello,
When i add custom field with text option all is fine. But field type textarea or dropdown then not working. Like pilot add something but not save and not shown. How can i fix this please.
-
Hi Parkho,
I have two more problems. Please see the picture. Thanks
-
23 hours ago, OmerAslan said:
Hi My Friend,
I have one more problem. Can you check for me?
http://image.prntscr.com/image/328759e8b6e646c6ad840674c91c07ee.png
Thanks.
On 11/13/2016 at 9:34 PM, Parkho said:Okay. Open all TPLs and change the <table> tags to the following:
<table width="100%">
Now Working Thanks.
-
body { background: url(images/.jpg) repeat fixed 0 0 #ffffff; background-size: 99% auto; color: #000000; font: bold 12px/37px Rubik, Rubik, Rubik; ----- i add this line }
and it works. Thanks.
-
I insert here my style.css i am trying to change font size and font type. I add import url and changed font type names but it didn't help. When i open my airline main page and other pages i want different font type. please help.
@import url('https://fonts.googleapis.com/css?family=Rubik:300,400,700'); body { background: url(images/.jpg) repeat fixed 0 0 #ffffff; background-size: 99% auto; color: #000000; } a { text-decoration: none; color: #0040FF; } #body { width: 99%; margin: 0 auto; padding: 0 0 0 0; background: none; font-size: 12px; border-top: none; border-bottom: none; padding-bottom: 0px; } } h1 { color: #FF6633; } h3 { background: url(images/.jpg) no-repeat left; height: 25px; font-size: 18px; padding-left: 28px; padding-bottom: 0px; margin-top: 10px; color: #d6d1d1; } hr { margin-top: 15px; height: 1px; border: none; border-bottom: solid 1px #999; } #innerwrapper { width: 99%; background: none; float: center; } #topBanner { background: url(images/topbanner3.png) no-repeat left;; width: 99%; height: 109px; } #topLogin { width: 370px; display: inline; float: right; padding-top: 30px; padding-right: 50px; } #topNav { font-size: 12px; width: 99%; margin: 0 auto; height: 37px; border-bottom: solid 1px #cccccc; } #topNav ul { margin: 0; padding: 0; list-style: none; margin: 0 auto; } #topNav ul li { height: 37px; float: left; padding: 0px; font: bold 12px/37px Rubik, Rubik, Rubik; } #topNav ul li a { padding: 0 18px; height: 37px; float: left; text-decoration: none; display: block; color: #666666; font: 14px/37px Rubik, Rubik, Rubik; } #bodytext { width: 99%; padding-left: 10px; padding-top: 5px; padding-right: 10px; padding-bottom: 0px; } .indent { padding-left: 32px; } .fsfk_section_title { font-weight: bold; } #mainbox { width: 99%; float: left; padding-right: 20px; } #sidebar { float: left; width: 210px; } #messagebox { border: dashed 1px #FF9900; background-color: #FFFFCC; padding: 5px 5px 5px 5px; color: #000000; font-size: 14px; float: right; } #error { border: 1px solid #FF0000; background: #FFCCDA; padding: 7px; text-align: center; } #success { border: 1px solid #008020; background: #D8FFCC; padding: 7px; text-align: center; } dl { position: relative; width: 730px; z-index: 100; clear: both; } dt { clear: both; float: left; width: 180px; padding: 0px 0 2px 0; text-align: left; font-size: 12px; font-weight: bold; } dd { float: left; width: 520px; margin: 0 0 8px 0; padding-left: 6px; font-size: 12px; } dd button { } dd p { margin-top: 0px; } dd input { width: 300px; padding: 3px; margin-bottom: 3px; z-index: 500; } #footer { width: 970px; /* background: url(images/bottombg.jpg) repeat-x 0 0 #ffffff; */ height: 148px; margin: 0 auto; padding: 10px 0 0 0; clear: both; text-align: center; border-left: none; border-right: none; } #footer p { padding: 10px; font-size: 12px; } /* Tables */ table.tablesorter { width: 99%; } table.tablesorter input { width: 90%; padding: 3px; border: solid 1px #7094FF; background: #FFFFFF; } table.tablesorter thead tr th, table.tablesorter tfoot tr th { background-color: #e6EEEE; font-size: 8pt; padding: 4px; } table.tablesorter thead tr .header { cursor: pointer; } table.tablesorter tbody td { padding: 6px; vertical-align: top; border-bottom: dashed 1px #333; } table.tablesorter tbody tr.odd td { background-color: #F0F0F6; } table.tablesorter thead tr .headerSortUp { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAECAYAAABhnXSoAAAAH0lEQVQY02NgwAOUdQ3+48IMlACqG4jNYAZqAlIMBADK1hfxlR+DYQAAAABJRU5ErkJggg==) no-repeat; } table.tablesorter thead tr .headerSortDown { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAECAYAAABhnXSoAAAAIElEQVQY02NgIAEo6xr8Z6AmABkIw1Q3kCoGYzOQkMEAeyQX8TIZ7e4AAAAASUVORK5CYII=) no-repeat; } table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp { background-color: #8dbdd8; } /* Navigation */ .nav, .nav ul { list-style: none; margin: 0; padding: 0; } .nav { font-family: Rubik, Rubik, Rubik; z-index: 1000; position: relative; } .nav li { float: left; margin: 0; padding: 0; position: relative; /* background: url(images/navbg.jpg) repeat-x 0 0 #292929; */ } .nav li a, .nav li a:link, .nav li a:active, .nav li a:visited { font: bold 1.22em/25px Rubik, Rubik, Rubik; color: #959595; display: block; padding: 9px; text-transform: upercase lowercase; text-decoration: none; } .nav li a:hover { background: /* #f2f2f2 */ #FAFBFF; color: #000; } #nav-one li:hover a, #nav-one li.sfHover a { background: #ccc; color: #000; } #nav-one li:hover ul a, #nav-one li.sfHover ul a { background: #565656; color: #959595; } #nav-one li:hover ul a:hover, #nav-one li.sfHover ul a:hover { background: #ccc; color: #000; } .nav ul { background: #565656; background: url(images/navbg.jpg) repeat-x 0 0 #292929; list-style: none; margin: 0; width: 150px; position: absolute; top: -999em; left: -1px; } .nav li:hover ul, .nav li.sfHover ul { top: 37px; } .nav ul li { border: 0; float: none; } .nav ul a { border: 1px solid #cccccc; border-bottom: 0; padding-right: 20px; width: 150px; white-space: nowrap; } .nav ul a:hover { background: #ccc; color: #000; } /* Skin */ @media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */ .ui-tabs-hide { display: none; } } /* Hide useless elements in print layouts... */ @media print { .ui-tabs-nav { display: none; } } .ui-tabs-nav, .ui-tabs-panel { font-family: "Rubik MS", Rubik, Rubik, Rubik, Rubik, Rubik; font-size: 12px; } .ui-tabs-nav { list-style: none; margin: 0; padding: 0 0 0 4px; } .ui-tabs-nav:after { display: block; /* clearing without presentational markup, IE gets extra treatment */ clear: both; content: " "; } .ui-tabs-nav li { float: left; margin: 0 0 0 1px; min-width: 84px; /* be nice to Opera */ } .ui-tabs-nav a, .ui-tabs-nav a span { display: block; padding: 0 10px; background: url(images/tab.png) no-repeat; } .ui-tabs-nav a { margin: 1px 0 0; /* position: relative makes opacity fail for disabled tab in IE */ padding-left:0; color: #27537a; font-weight: bold; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; /* required in IE 6 */ outline: 0; /* prevent dotted border in Firefox */ } .ui-tabs-nav .ui-tabs-selected a { position: relative; top: 1px; z-index: 2; margin-top: 0; color: #000; } .ui-tabs-nav a span { width: 64px; /* IE 6 treats width as min-width */ min-width: 64px; height: 18px; /* IE 6 treats height as min-height */ min-height: 18px; padding-top: 6px; padding-right: 0; } * > .ui-tabs-nav a span { width: auto; /* hide from IE 6 */ height: auto; } .ui-tabs-nav .ui-tabs-selected a span { padding-bottom: 1px; } .ui-tabs-nav .ui-tabs-selected a, .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active { background-position: 99% -150px; } .ui-tabs-nav a, .ui-tabs-nav .ui-tabs-disabled a:hover, .ui-tabs-nav .ui-tabs-disabled a:focus, .ui-tabs-nav .ui-tabs-disabled a:active { background-position: 99% -100px; } .ui-tabs-nav .ui-tabs-selected a span, .ui-tabs-nav a:hover span, .ui-tabs-nav a:focus span, .ui-tabs-nav a:active span { background-position: 0 -50px; } .ui-tabs-nav a span, .ui-tabs-nav .ui-tabs-disabled a:hover span, .ui-tabs-nav .ui-tabs-disabled a:focus span, .ui-tabs-nav .ui-tabs-disabled a:active span { background-position: 0 0; } .ui-tabs-nav .ui-tabs-selected a:link, .ui-tabs-nav .ui-tabs-selected a:visited, .ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */ cursor: text; } .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active, .ui-tabs-nav .ui-tabs-unselect a:hover, .ui-tabs-nav .ui-tabs-unselect a:focus, .ui-tabs-nav .ui-tabs-unselect a:active { /* @ Opera, we need to be explicit again here now... */ cursor: pointer; } .ui-tabs-disabled { opacity: .4; filter: alpha(opacity=40); } .ui-tabs-panel { padding: 1em 8px; background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */ } .ui-tabs-loading em { padding: 0 0 0 20px; background: url(loading.gif) no-repeat 0 50%; } /* Additional IE specific bug fixes... */ * html .ui-tabs-nav { display: inline-block; /* auto clear, @ IE 6 & IE 7 Quirks Mode */ } *:first-child + html .ui-tabs-nav { display: inline-block; /* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */ }
-
Hi My Friend,
I have one more problem. Can you check for me?
http://image.prntscr.com/image/328759e8b6e646c6ad840674c91c07ee.png
Thanks.
-
13 hours ago, ProAvia said:
I think the time used in phpVMS has something to do with where your hosting company is located. I'm not sure if it can be changed.
But - you can display a clock with whatever time zone you choose. One place to get a free one is http://www.clocklink.com/
12 hours ago, web541 said:Try adding this to your local.config.php file
date_default_timezone_set('UTC');
If that doesn't work, then there is a setting in your php.ini file which depending on your hosting provider, you might (or might not) be able to change. Contacting them might be the best way to check this.
10 minutes ago, servetas said:That is correct, if what web541 suggested does not work, you will have to edit your php.ini. If your website is hosted on a shared hosting server, you might not be able to change it. You will have to get in touch with to request such a change or move to a shared hosting provider who has UTC set.
Hi guys,
Ok, i have godaddy hosting sharing so there is no php.ini file. I post in their community. I will get answer soon. When i put code to local.config.php file i see error log time change in my hosting but in admin log the same. Also i checked phpmyadmin acars time not changed. Anyway when i fix this i will let you know and write here. Thanks to you all.
-
Hello friends,
I have phpvms 5.5.2 and all works fine. Just one thing. I need to make my phpvms time zone UTC . But no matter what i did it didn't helped me. When i see admin activity log i see that my phpvms time zone is America/Denver and how can i change it please help. i add timezone UTC in localconfig.php but not working. I will die because of this. Please help...
-
9 minutes ago, joooseb said:
I'm insterested in that add on! Do you know if is possible to change the variables of the Badge? For example: in stead of "Last seen" say: "Última vez" (spanish translate)
I believe you can do that my friend. But better if you ask this to David. I can only say this module works well and i like it. I am using in my forum and some other forums. Looks great.
-
I changed to
$pilot_details = PilotData::getPilotData($pirep_details->pilotid); if($status == PIREP_ACCEPTED) { $email = $pilot_details->email; $subject = "Pirep Accepted"; $message = "Your pirep $pirep_details->id from $pirep_details->depicao to $pirep_details->arricao has been accepted. Thanks for flying with us."; Util::SendEmail($email, $subject, $message); } elseif($status == PIREP_REJECTED) { $email = $pilot_details->email; $subject = "Pirep Rejected"; $message = "Your pirep $pirep_details->id from $pirep_details->depicao to $pirep_details->arricao has been rejected."; Util::SendEmail($email, $subject, $message);
and result
Your pirep 2101 from LTFJ to OMAA has been accepted. Thanks for flying with us. and very good for me. Thank you my friend.
-
Hi i add it and become like this:
$pilot_details = PilotData::getPilotData($pirep_details->pilotid); if($status == PIREP_ACCEPTED) { $email = $pilot_details->email; $subject = "pirep accepted"; $message = "Your pirep #'.$pirep_details->id.' from '.$pirep_details->depicao.' to '.$pirep_details->arricao.' has been accepted."; Util::SendEmail($email, $subject, $message); } elseif($status == PIREP_REJECTED) { $email = $pilot_details->email; $subject = "pirep rejected"; $message = "Your pirep #'.$pirep_details->id.' from '.$pirep_details->depicao.' to '.$pirep_details->arricao.' has been rejected."; Util::SendEmail($email, $subject, $message); } $ret = self::editPIREPFields($pirepid, array('accepted' => $status));
and i get e-mail like this
Your pirep #'.4.' from '.KLAX.' to '.NZAA.' has been accepted. Can we make that looks little better? Like without pound sign and dots...
Thanks
-
Hello,
When you accept or reject pirep, is it possible to send auto pirep to the pilot? Like your pirep Id 2008 from XXXX to YYYY has been accepted or rejected. Something like that.
Thanks.
-
This is so helpful. I download also but i get empty email. Anyway to fix this?
-
2 minutes ago, web541 said:
Hmm ok, try this (it won't calculate the code just yet but it will allow us to see what is being carried across)
Dear <?php echo $pilot->code.''.$pilot->pilotid.' - '.$pilot->firstname.' '.$pilot->lastname ?>,
Perfect my friend. Thank you...
-
8 minutes ago, web541 said:
In that case, try this
Dear <?php echo PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - '.$pilot->firstname.' '.$pilot->lastname ?>,
And that should work.
This didn't work my friend. Just name and last name. I have phpvms 5.5.2
-
5 minutes ago, web541 said:
Onto which email? (email_registered, email_registrationaccepted, email_registrationdenied)
Try calling it like this
$pilot->code;
or
PilotData::getPilotCode($pilot->code, $pilot->pilotid);
It will work with two of the emails, otherwise you will need an extra step.
Hi,
email_registrationaccepted.php here next to this after Dear: Dear <?php echo $pilot->firstname.' '.$pilot->lastname ?>, Like first callsign then name and last name...
-
Where you put this code?
-
I want to add pilot callsign in the email. What is the code for that please?
-
Sorry i am late. I got very fast servces. In the future, If anyone have same problem
ACARS table and set the last timestamp ahead of the current time. (I don't know how to do this David did for me) And fixed. Thanks again.
-
Which one is acars table? And how can i change the time in that? Timestamp? Thanks...
[SOLVED] Profile Field Custom Field Problem
in Support Forum
Posted
George,
When pilot new registration, when pilot choose one of the option from dropdown, not showing. But textarea now working good. Thanks...