This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="block-block-6" class="well well-small block block-block"> | |
<div class="row-fluid"> | |
<div class="span3"> | |
<img src="/images/backgrounds/ask-librarian6.png"> | |
</div> | |
<div class="span9"> | |
<h2 class="pane-title">Ask a Librarian</h2> | |
<ul class="nav nav-pills" id="myTab"> | |
<li class="dropdown"> | |
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$authurl= $data->node_node_data_field_authurl_value; | |
$vendorurl = $data->node_node_data_field_vendorurl_value; | |
echo $authurl . $vendorurl; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$imgurlpath = "/images/icons/"; | |
echo "<div class='tipsy' title='"; | |
switch ($data->node_node_data_field_top_dbs__node_data_field_trial_period_field_full_text_value) { | |
case "2": | |
$dbcontenttype = "CD ROMS are viewable over the web"; | |
echo $dbcontenttype . "'><img src='" . $imgurlpath . "cd1-pub.png' width='18' height='19' alt='" . $dbcontenttype . "' />"; | |
break; | |
case "4": | |
$dbcontenttype = "Database has some full-text"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('#user-login-form .form-item input').each(function(){ | |
var p = jQuery(this).prev('label').text(); | |
jQuery(this).attr('placeholder',p); | |
}); | |
jQuery('#user-login-form .form-item label').css('display','none'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//put this in settings.php | |
function custom_url_rewrite_inbound(&$result, $path, $path_language) { | |
if ($path == 'node') { | |
//this will cause a page not found | |
$result = ''; | |
} | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
drupal_add_css("sites/all/themes/osulibraries/comp_map.css"); | |
drupal_add_js('setTimeout("window.location.reload()",300000);', 'inline'); | |
db_set_active('comp_map'); | |
$total_pc_results = db_query("SELECT * FROM compstatus WHERE computer_type='PC'"); | |
$avail_pc_results = db_query("SELECT * FROM compstatus WHERE status='0' AND computer_type='PC'"); | |
$pcs = mysql_num_rows($avail_pc_results) . '/' . mysql_num_rows($total_pc_results); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#add your database username and password | |
$user="username"; | |
$password="password"; | |
$database="computer_availability"; | |
#connect to the database | |
$DB = mysql_connect('mysqlcluster.adm.yourmysqlserver.edu', $user, $password); | |
@mysql_select_db($database) or die("Unable to select database"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#add your database username and password | |
$user="username"; | |
$password="password"; | |
$database="computer_availability"; | |
#connect to the database | |
$DB = mysql_connect('mysqlcluster.adm.yourmysqlserver.edu', $user, $password); | |
@mysql_select_db($database) or die("Unable to select database"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#add your database username and password | |
$user="username"; | |
$password="password"; | |
$database="computer_availability"; | |
#unless the computers name was empty | |
if($_POST['workstation'] != ""){ | |
$workstation = strtoupper($_POST['workstation']); | |
} | |
else{ #build the computer's name from the host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-type: text/xml"); | |
// Please DO send ideas for improving this to libwebdev@csusm.edu | |
// Include the file with MySQL database connection info | |
include("/file-location/whatever-folder/db-connection-file.php"); | |
// Database connection and tests | |
$database = "your-production-a-la-carte-db-name"; |