コード例 #1
0
ファイル: sidebar.php プロジェクト: darrentangdt/DCIMStack
} else {
    echo "<li><a href='ram.php'><img src='assets/img/tab_go.png'> RAM</a></li>";
}
if (get_filename_from_url() == "network.php") {
    echo "<li class='active'><a href='network.php'><img src='assets/img/chart_curve_go.png'> Network</a></li>";
} else {
    echo "<li><a href='network.php'><img src='assets/img/chart_curve_go.png'> Network</a></li>";
}
if (get_filename_from_url() == "pdus.php") {
    echo "<li class='active'><a href='ram.php'><img src='assets/img/lightning_go.png'> PDUs</a></li>";
} else {
    echo "<li><a href='ram.php'><img src='assets/img/lightning_go.png'> PDUs</a></li>";
}
if (get_filename_from_url() == "cpus.php") {
    echo "<li class='active'><a href='cpus.php'><img src='assets/img/computer_go.png'> CPUs</a></li>";
} else {
    echo "<li><a href='cpus.php'><img src='assets/img/computer_go.png'> CPUs</a></li>";
}
if (get_filename_from_url() == "add_hardware.php") {
    echo "<li class='active'><a href='add_hardware.php'><img src='assets/img/package_go.png'> Other</a></li>";
} else {
    echo "<li><a href='add_hardware.php'><img src='assets/img/package_go.png'> Other</a></li>";
}
?>
  </ul>
  <ul class="nav nav-sidebar">
    <li><a href="shipments.php"><img src='assets/img/lorry.png'> Shipments</a></li>
    <li><a href="">One more nav</a></li>
    <li><a href="">Another nav item</a></li>
  </ul>
</div>
コード例 #2
0
ファイル: classapp.php プロジェクト: jprice/EHCP
 function download_file_from_url_extract($url, $downloadto, $extractto, $filename = '')
 {
     print "getting and installing file from url: {$url} ";
     if ($filename == '') {
         $filename = get_filename_from_url($url);
     }
     $this->download_url($url, $downloadto, $filename);
     # dosyayi gecici bir dizine kopyala, sonra icinde ac, sonra icinde bircok dosya varsa direk ....
     passthru2("mkdir -vp {$extractto}");
     if ($downloadto != $extractto) {
         passthru2("cp -vf {$downloadto}/{$filename} {$extractto}/");
     }
     print "current dir: " . getcwd() . "... will extract files... \n\n";
     if (!$this->extract_file($filename, $extractto)) {
         return False;
     }
     if ($downloadto != $extractto) {
         passthru2("rm -vf {$filename}");
     }
     # remove file in tmp dir.
     return True;
 }
コード例 #3
0
ファイル: sidebar.php プロジェクト: arjitc/DCIMStack
}
if (get_filename_from_url() == "cpus.php") {
    echo "<li class='active'><a href='cpus.php'><img src='assets/img/computer_go.png'> CPUs</a></li>";
} else {
    echo "<li><a href='cpus.php'><img src='assets/img/computer_go.png'> CPUs</a></li>";
}
if (get_filename_from_url() == "add_hardware.php") {
    echo "<li class='active'><a href='add_hardware.php'><img src='assets/img/package_go.png'> Other</a></li>";
} else {
    echo "<li><a href='add_hardware.php'><img src='assets/img/package_go.png'> Other</a></li>";
}
?>
  </ul>
  <ul class="nav nav-sidebar">
  <li class="dropdown-header">Shipments/RMA</li>
  <?php 
if (get_filename_from_url() == "shipments.php") {
    echo "<li class='active'><a href='shipments.php'><img src='assets/img/lorry.png'> Shipments</a></li>";
} else {
    echo "<li><a href='shipments.php'><img src='assets/img/lorry.png'> Shipments</a></li>";
}
?>
  <?php 
if (get_filename_from_url() == "shipments.php") {
    echo "<li class='active'><a href='shipments.php'><img src='assets/img/lorry.png'> RMA</a></li>";
} else {
    echo "<li><a href='shipments.php'><img src='assets/img/lorry.png'> RMA</a></li>";
}
?>
  </ul>
</div>