Skip to content

Commit

Permalink
Modify to use bootstrap_curator cont'd
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lee committed Dec 20, 2010
1 parent e04b028 commit 713cad6
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 36 deletions.
4 changes: 3 additions & 1 deletion curator_data/traitAdd.php
@@ -1,9 +1,11 @@
<?php <?php
// 12/14/2010 JLee Change to use curator bootstrap

require 'config.php'; require 'config.php';
/* /*
* Logged in page initialization * Logged in page initialization
*/ */
include($config['root_dir'] . 'includes/bootstrap.inc'); include($config['root_dir'] . 'includes/bootstrap_curator.inc');


connect(); connect();
loginTest(); loginTest();
Expand Down
6 changes: 4 additions & 2 deletions login/edit_line.php
@@ -1,10 +1,12 @@
<?php <?php
// 12/14/2010 JLee Change to use curator bootstrap

require 'config.php'; require 'config.php';
/* /*
* Logged in page initialization * Logged in page initialization
*/ */
include($config['root_dir'] . 'includes/bootstrap.inc'); include($config['root_dir'] . 'includes/bootstrap_curator.inc');
include($config['root_dir'] . 'curator_data/boot_test.php'); //include($config['root_dir'] . 'curator_data/boot_test.php');


connect(); connect();
loginTest(); loginTest();
Expand Down
5 changes: 4 additions & 1 deletion login/edit_pedigree.php
@@ -1,9 +1,12 @@
<?php <?php

// 12/14/2010 JLee Change to use curator bootstrap

require 'config.php'; require 'config.php';
/* /*
* Logged in page initialization * Logged in page initialization
*/ */
include($config['root_dir'] . 'includes/bootstrap.inc'); include($config['root_dir'] . 'includes/bootstrap_curator.inc');
include($config['root_dir'] . 'curator_data/boot_test.php'); include($config['root_dir'] . 'curator_data/boot_test.php');


connect(); connect();
Expand Down
8 changes: 5 additions & 3 deletions login/edit_traits.php
@@ -1,12 +1,14 @@
<?php <?php
// 12/14/2010 JLee Change to use curator bootstrap

require 'config.php'; require 'config.php';
include($config['root_dir'] . 'curator_data/boot_test.php'); //include($config['root_dir'] . 'curator_data/boot_test.php');




/* /*
* Logged in page initialization * Logged in page initialization
*/ */
include($config['root_dir'] . 'includes/bootstrap.inc'); include($config['root_dir'] . 'includes/bootstrap_curator.inc');


connect(); connect();
//loginTest(); //loginTest();
Expand Down Expand Up @@ -114,4 +116,4 @@
</div> </div>
</div> </div>


<?php include($config['root_dir'] . 'theme/footer.php');?> <?php include($config['root_dir'] . 'theme/footer.php');?>
8 changes: 5 additions & 3 deletions login/traitAdd.php
@@ -1,10 +1,12 @@
<?php <?php
// 12/14/2010 JLee Change to use curator bootstrap

require 'config.php'; require 'config.php';
/* /*
* Logged in page initialization * Logged in page initialization
*/ */
include($config['root_dir'] . 'includes/bootstrap.inc'); include($config['root_dir'] . 'includes/bootstrap_curator.inc');
include($config['root_dir'] . 'curator_data/boot_test.php'); //include($config['root_dir'] . 'curator_data/boot_test.php');


connect(); connect();
loginTest(); loginTest();
Expand Down Expand Up @@ -202,4 +204,4 @@
</div> </div>
</div> </div>


<?php include($config['root_dir'] . '/theme/footer.php');?> <?php include($config['root_dir'] . '/theme/footer.php');?>
6 changes: 4 additions & 2 deletions logout.php
@@ -1,5 +1,7 @@
<?php <?php
include("includes/bootstrap.inc"); // 12/14/2010 JLee Change to use curator bootstrap

include("includes/bootstrap_curator.inc");
connect(); connect();
$row = loadUser($_SESSION['username']); $row = loadUser($_SESSION['username']);
ob_start(); ob_start();
Expand Down Expand Up @@ -30,4 +32,4 @@


<meta http-equiv="refresh" content="2;url=index.php" /> <meta http-equiv="refresh" content="2;url=index.php" />


<?php include("theme/footer.php");?> <?php include("theme/footer.php");?>
46 changes: 22 additions & 24 deletions pedigree/line_selection.php
Expand Up @@ -70,33 +70,30 @@
//var test = new Array("<?/*php echo $selLines*/?>"); //var test = new Array("<?/*php echo $selLines*/?>");
//test1 = test.length; //test1 = test.length;
// Select All // Select All
function exclude_all() { function exclude_all() {


//alert ("hi"); //alert ("hi");
count = document.lines.elements.length; count = document.lines.elements.length;
for (i=0; i < count; i++) for (i=0; i < count; i++)
{ {
if(document.lines.elements[i].checked == 0) if(document.lines.elements[i].checked == 0) {
{document.lines.elements[i].checked = 1; } document.lines.elements[i].checked = 1;
// else {document.lines.elements[i].checked = 1;} }
// else {document.lines.elements[i].checked = 1;}
} }


document.lines.btn1.checked = "checked"; document.lines.btn1.checked = "checked";
} }

function exclude_none()
{
count = document.lines.elements.length;
for (i=0; i < count; i++)
{
if(document.lines.elements[i].checked == 1)
{document.lines.elements[i].checked = 0; }
//else {document.lines.elements[i].checked = 1;}
}
}




function exclude_none() {
count = document.lines.elements.length;
for (i=0; i < count; i++) {
if(document.lines.elements[i].checked == 1) {
document.lines.elements[i].checked = 0;
}
//else {document.lines.elements[i].checked = 1;}
}
}
</script> </script>


<style type="text/css"> <style type="text/css">
Expand Down Expand Up @@ -316,11 +313,12 @@ function exclude_none()
var_dump($lineStr); var_dump($lineStr);
var_dump($test); */ var_dump($test); */
// var_dump($breedingCode); // var_dump($breedingCode);



// var_dump ($breedingProgram); // var_dump ($breedingProgram);
//var_dump ($breedingCode); //var_dump ($breedingCode);


/* /*
var_dump($breedingProgram); var_dump($breedingProgram);
var_dump($growthHabit); var_dump($growthHabit);
var_dump($primaryEndUse); var_dump($primaryEndUse);
Expand All @@ -341,8 +339,8 @@ function exclude_none()
$hull = "."; $hull = ".";
if (count($primaryEndUse) < 1) if (count($primaryEndUse) < 1)
$primaryEndUse = "."; $primaryEndUse = ".";
*/ */


if ( (strlen($linename) < 1) AND (strlen($hull) < 1) AND (strlen($rowType) < 1) AND (count($breedingProgram) == 0) AND (count($growthHabit) == 0) AND (count($primaryEndUse) == 0) ) if ( (strlen($linename) < 1) AND (strlen($hull) < 1) AND (strlen($rowType) < 1) AND (count($breedingProgram) == 0) AND (count($growthHabit) == 0) AND (count($primaryEndUse) == 0) )
Expand Down

0 comments on commit 713cad6

Please sign in to comment.