Jump to content

ncd200

Members
  • Posts

    163
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by ncd200

  1. 7 hours ago, ProAvia said:

    Oops - my mistake. phpVMS only shows the line you listed. I don't believe there is a way to randomize the load factor directly in phpVMS.

    My ACARS allows a baseline for load and a percentage offset to create a random load.

     

    What ACARS are you using?

     

    I use SmartCars II

  2. Hello Haru,

    As I may be so free to give you my personal opinion about this subject.

    Create your own template.

    There is a good tutorial available on the forum and it is really not hard to do.

     

    If you dont want to do this I recommend ELA2018 Admin template also available on the forum.

    If you need help just give me a pm

  3. Hello

    I h.ave a problem with my registration form. I am unable to register and i dont know what the problem is

    When i click register the page resets itself to the register form with all errors activated.

     

    My code is below so I hope someone can spot the problem.

     

       <style>
      .scroller {
        overflow: scroll;
        padding: 5px;
        height: 100%;
      }
      
      input[type=submit] {
        width: 30em;  
    }
    </style>
    <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
    
    <script src='https://www.google.com/recaptcha/api.js'></script>
    
        <section id="sign-up">
    
            <!-- Background Bubbles -->
            <canvas id="bubble-canvas"></canvas>
            <!-- /Background Bubbles -->
    
            <!-- Sign Up Form -->
            <form action="<?php echo url('/registration');?>" method="post">
                <div class="row links">
                    <div class="col s6 logo">
                        <img src="<?php echo SITE_URL?>/lib/skins/bluewings/assets/_con/images/logo-white.png" alt="">
                    </div>
                    <div class="col s6 right-align"><a href="<?php echo url('/login');?>">Sign In</a> /
                        <strong>Sign Up</strong>
                    </div>
                </div>
    
                <div class="card-panel clearfix">
                
                    <div class="form-group">
                        <!-- First Name -->
                            <div class="input-field">
                                <input id="input_fname" name="firstname" value="<?php echo Vars::POST('firstname');?>" type="text" placeholder="First Name"><?php
                              if($firstname_error == true)
                                  echo '<p class="error">Please enter your first name</p>';
                          ?>
                            </div>
                        <!-- /First Name -->
    
                        <!-- Last Name -->
                            <div class="input-field">
                                <input id="input_lname" value="<?php echo Vars::POST('lastname');?>" type="text" placeholder="Last Name"><?php
                              if($lastname_error == true)
                                  echo '<p class="error">Please enter your last name</p>';
                          ?></div>
                        </div>
                        <!-- /Last Name -->
    
                    <!-- Email -->
                    <div class="form-group">
                        <input id="input_email" type="email" name="email" value="<?php echo Vars::POST('email');?>" placeholder="Email"><?php
                              if($email_error == true)
                                  echo '<p class="error">Please enter your email address</p>';
                          ?>
                    </div>
                    <!-- /Email -->
     
                    <!-- Password -->
                    <div class="form-group">
                        <input type="password" name="password1" id="password" class="form-control" placeholder="Password">
                    </div>
                    <!-- /Password -->
                    
                    <!-- Password -->
                    <div class="form-group">
                        <input type="password" name="password1" class="form-control" placeholder="Password"><?php
                              if($password_error == true)
                                  echo '<p class="error">'.$password_error.'</p>';
                          ?>
                        
                    </div>
                    <!-- /Password -->
                    
                    <div class="form-group">
                          <select name="code" id="code" style="width: 80%;">
    		<?php
    		foreach($airline_list as $airline) {
    			echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>';
    		}
    		?>
    		</select>
                          
                      </div>
                      
                      <div class="form-group">
                          <select name="location">
                              <?php
                                  foreach($countries as $countryCode=>$countryName)
                                  {
                                  if(Vars::POST('location') == $countryCode)
                                      $sel = 'selected="selected"';
                                  else
                                      $sel = '';
                                      echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';
                                  }
                              ?>
                          </select>
                          <?php
                              if($location_error == true)
                                  echo '<p class="error">Please enter your location</p>';
                          ?>
                      </div>
                      
                      <div class="form-group">
                          <select name="hub" id="hub">
                              <?php
                                  foreach($allhubs as $hub)
                                  {
                                      echo '<option value="'.$hub->icao.'">'.$hub->icao.' - ' . $hub->name .'</option>';
                                  }
                              ?>
                          </select>
                      </div>
                      
                      <div class="form-group">
                      <?php
                          //Put this in a seperate template. Shows the Custom Fields for registration
                          Template::Show('registration_customfields.tpl');
                      ?>
                      </div>
    
    <div class="form-group">
                        <?php if(isset($captcha_error)){echo '<p class="error">'.$captcha_error.'</p>';} ?>
                <div class="g-recaptcha" data-sitekey="<?php echo $sitekey;?>"></div>
                <script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=<?php echo $lang;?>">
                </script>
                      </div>
                    
    				<input type="submit" class="waves-effect waves-light btn-large z-depth-0 z-depth-1-hover" name="submit" value="Sign Up" />
                </div>
    
            </form>
            <!-- /Sign Up Form -->
    
        </section>

     

    Thanks in advance

  4. Qpilot,

    It totaly depends on what you want, if you want to use a freeware released template released here on the forum you can download that and modify the logos for example.

    Personaly I think the best way is to find a good template on the net and convert it to phpvms which is not hard to do, just see the tutorial for that in the skinning forum.

    then you have the complete freedom to create it to your taste and modify every part you like, also you know your site inside out so it is way easier to modify parts at a later stage.

     

    Also I have done it with hardly no programming experience. so If I can do it, you also can.

    PM me if you need help.

×
×
  • Create New...