Jump to content

dmks1234

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by dmks1234

  1. Okay, one issue. The submit button does not work. Here is the code:

    <h3><?php echo $title?></h3>
    <form id="form" action="<?php echo SITE_URL?>/admin/index.php/pilotranking/awards" method="post">
    <dl>
    <dt>Award Name</dt>
    <dd><input name="name" type="text" value="<?php echo $award->name;?>" /></dd>
    
    <dt>Description</dt>
    <dd><input name="descrip" type="text" value="<?php echo $award->descrip;?>" /></dd>
    
    <dt>Image URL</dt>
    <dd><input name="image" type="text" value="<?php echo $award->image;?>" />
     <p>Enter the full URL, or path from root to the image</p>
    </dd>
    
    <dt></dt>
    <dd><input type="hidden" name="awardid" value="<?php echo $award->awardid;?>" />
     <input type="hidden" name="action" value="<?php echo $action;?>">
     <input type="submit" name="submit" value="<?php echo $title;?>" /></dd>
    </dl>
    </form>
    

    Once it is working, ill style it and add the bootstrap classes though.

    Thanks

  2. I assume this is for an admin skin,

    As per my discoveries here http://forum.phpvms....iv/#entry122172

    Any version of jquery above 1.8.3 breaks the Ajax functions required to run phpvms. So I'd change your jquery version back. this will give you a "jQuery 1.9.1 or higher is required for Bootstrap" however the function will still work.

    If they don't, then you can have your newest version of jQuery placed upin the skin as normal and for the pages such as pilots, schedules and PIREPS,

    and at the end of the page do a

    jQuery.noconflict(true)

    And that should reset the global variable for phpVMS everywhere else but those pages.

    Okay, so downgrading jquery 1.8 fixes the issue however bootstrap's javascript stops working. And requires 1.9. What is the best way to get around this?

    Thanks In Advance.

  3. Hello All,

    I have since made my own bootstrap based skin for phpvms and since I have done that the accept/rejecting pilots function nolonger works. You can click it however it does nothing. I am not really sure what is causing it however I have refrenced the core_htmlhead.tpl in the header.tpl so all phpvms functions are still included.

    Here is some of my code:

    <div class="airlinelist">
    				 <div class="panel panel-default">
    					 <div class="panel-heading">
    						 <h3 class="panel-title"><i class="fa fa-bar-chart-o fa-fw"></i></h3>
    					 </div>
    					 <div class="panel-body">
     <h3>Pending Pilots</h3>
     <?php
     if(!$allpilots)
     {
    	 echo '<p>There are no pilots!</p>';
    	 return;
     }
     ?>
     <table id="tabledlist" class="table tablesorter">
     <thead>
     <tr>
    	 <th>Pilot Name</th>
    	 <th>Email Address</th>
    	 <th>Location</th>
    	 <th>Hub</th>
    	 <th>Options</th>
     </tr>
     </thead>
     <tbody>
     <?php
     foreach($allpilots as $pilot)
     {
     ?>
     <tr>
    	 <td><a href="<?php echo SITE_URL?>/admin/index.php/pilotadmin/viewpilots?action=viewoptions&pilotid=<?php echo $pilot->pilotid;?>"><?php echo $pilot->firstname . ' ' . $pilot->lastname; ?></a></td>
    	 <td align="center"><?php echo $pilot->email; ?></td>
    	 <td align="center"><?php echo $pilot->location; ?></td>
    	 <td align="center"><?php echo $pilot->hub; ?></td>
    	 <td align="center" width="1%" nowrap>
    		 <button href="<?php echo SITE_URL?>/admin/action.php/pilotadmin/pendingpilots" action="approvepilot"
    	 class="btn btn-danger" id="<?php echo $pilot->pilotid;?>">Accept</button>
    
    		 <button href="<?php echo SITE_URL?>/admin/action.php/pilotadmin/pendingpilots" action="rejectpilot"
    	 id="<?php echo $pilot->pilotid;?>" class="btn btn-danger ajaxcall {button:{icons:{primary:'ui-icon-circle-close'}}}">Reject</button>
    	 </td>
     </tr>
     <?php
     }
     ?>
     </tbody>
     </table>
    					 </div>
    				 </div>
    			 </div>
    		 </div>
    

    If anyone has any suggestions on how to get this working that would be great!!

    Thanks,

    Dmk

    • Like 1
  4. Hello,

    I am looking for a professional, paid service that is not overly expensive but affordable. I need a responsive theme that uses lots of bootstrap elements. The theme needs to be original work and look very attractive.

    For colours:

    Orange - Elements such as buttons, panels and progress bars

    #FF9900

    Dark Grey - Text on most pages

    #333333

    White - Background

    #FFFFFF

    I will not go far into detail as this needs to be discussed one on one over our teamspeak 3 server.

    If anyone is interested and has a portfolio that they can show me to prove that you are up for the job and not a scam. Please reply to the thread with an expression of interest with an estimated price range for your services and I will PM you with our teamspeak 3 details to get in touch and start the process.

    Thanks,

    Kyle | CEO GoCat Virtual

×
×
  • Create New...