Exemplo n.º 1
0
function get_user_apps()
{
    global $post;
    $id = $_SESSION['developer_id'];
    $apps = wp_get_post_terms($id, 'app_name', array("fields" => "all"));
    //	print_r($apps);
    // must use app id to count how many questions are left to answer
    foreach ($apps as $app) {
        if (count_questions($app->term_id, 'all-apps') == null) {
            $count = 'Ready to start';
            $result = '';
        } else {
            $count = count_questions($app->term_id, 'all-apps');
            $result = count_questions($app->term_id, 'total-pass-fail');
        }
        // once clicked the session app id needs to change
        echo '<li class="list-group-item app-progress"><a href="/ie-design/app_name/' . $app->slug . '">' . $app->name . '</a>
           <span class="label label-default"> ' . $count . ' </span> ' . $result . '</li><div class="clearfix"></div>';
    }
}
Exemplo n.º 2
0
echo $term->name;
?>
</h1>
            <p>
              Answer the questions to build your self assessment score. You can see
              your summary as you go in the overview
            </p>
          </div>
          <?php 
count_questions($term->term_id, 'single-app');
?>
        </div>
       
      </div>
      <?php 
count_questions($term->term_id, 'total-alert');
?>
      
      <?php 
yes_no_forms('your_app');
?>
           
      <div class="page-header">
        <h3>
          Summary of your assessment
        </h3>
        <div class="row">
          <div class="col-md-3 <?php 
echo $failed;
?>
 <?php 
Exemplo n.º 3
0
    <div class="container">
      <div class="jumbotron">
	      
	       <div class="row">
		   		<div class="col-md-8">
			        <h1>
			          <?php 
echo form_name($form);
?>
			        </h1>
			        <p>
			          Helpful info for this form.
			        </p>
		   		</div>
		   		<?php 
count_questions($tax_id, 'single-app');
?>
	       </div>
      </div>
    </div>
   
	        
    <div class="container">
	    <div id="find-active" class="<?php 
echo $form;
?>
">
	     <?php 
yes_no_forms('your_app');
?>