parent
f02681850b
commit
2538a63453
|
@ -1 +1,4 @@
|
|||
configuration.inc
|
||||
build
|
||||
dist
|
||||
data/sessions/*
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "html/js/yui3"]
|
||||
path = html/js/yui3
|
||||
url = https://github.com/yui/yui3.git
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
BUILD=./build
|
||||
DIST=./dist
|
||||
|
||||
if [ ! -d $BUILD ]
|
||||
then mkdir $BUILD
|
||||
else rm -Rf $BUILD/*
|
||||
fi
|
||||
|
||||
if [ ! -d $DIST ]
|
||||
then mkdir $DIST
|
||||
else rm -Rf $DIST/*
|
||||
fi
|
||||
|
||||
rsync -rlv --exclude-from=./buildignore --delete ./ ./build/
|
||||
|
||||
tar czvf $DIST/rosehill.tar.gz --transform=s/build/rosehill/ $BUILD
|
|
@ -0,0 +1,10 @@
|
|||
/buildignore
|
||||
/build.sh
|
||||
/build
|
||||
/dist
|
||||
.git/
|
||||
.git*
|
||||
configuration.inc
|
||||
/data/sessions/*
|
||||
/scripts/backup.cnf
|
||||
/html/js/yui3/src/
|
|
@ -1,13 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Replace this copyright statement with your own. All the generated code
|
||||
* will include this copyright statement
|
||||
*/
|
||||
define('COPYRIGHT',"/**
|
||||
* @copyright 2007-2012 City of Bloomington, Indiana
|
||||
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
||||
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
||||
*/");
|
||||
/**
|
||||
* Used to keep sessions on the same webserver seperate;
|
||||
*/
|
||||
|
@ -37,7 +28,8 @@ Zend_Loader_Autoloader::getInstance();
|
|||
* The URL to get to this site
|
||||
* Do NOT use a trailing slash
|
||||
*/
|
||||
define('BASE_URL','http://localhost');
|
||||
define('BASE_URL','http://localhost/application_name');
|
||||
define('BASE_URI', '/application_name');
|
||||
|
||||
/**
|
||||
* Used when there's an error on the site. The Framework will
|
||||
|
@ -106,6 +98,9 @@ define('DIRECTORY_ADMIN_PASS','password');
|
|||
//define('DIRECTORY_ADMIN_BINDING', 'uid=admin,'.DIRECTORY_BASE_DN);
|
||||
//define('DIRECTORY_ADMIN_PASS','password');
|
||||
|
||||
define('YUI', BASE_URI.'/js/yui3/build');
|
||||
|
||||
|
||||
/**
|
||||
* Import global functions that we use for many applications we write
|
||||
*/
|
||||
|
|
|
@ -1,40 +1,44 @@
|
|||
"use strict";
|
||||
/**
|
||||
* @copyright 2010 City of Bloomington, Indiana
|
||||
* @copyright 2014 City of Bloomington, Indiana
|
||||
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
||||
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
||||
*/
|
||||
var COB = {};
|
||||
var COB = {
|
||||
populateSections: function (cemetery_id, select_id, BASE_URL) {
|
||||
var url = BASE_URL + '/cemeteries/viewCemetery.php?format=json;cemetery_id=' + cemetery_id;
|
||||
|
||||
COB.populateSections = function(cemetery_id,select_id,BASE_URL) {
|
||||
var url = BASE_URL + '/cemeteries/viewCemetery.php?format=json;cemetery_id=' + cemetery_id;
|
||||
YUI().use('io', 'json', function (Y) {
|
||||
Y.io(url, {
|
||||
on: {
|
||||
complete: function (id, o, args) {
|
||||
var select = document.getElementById(select_id),
|
||||
sections = Y.JSON.parse(o.responseText).sections,
|
||||
i = 0;
|
||||
|
||||
YAHOO.util.Connect.asyncRequest('GET',url,{
|
||||
success : function (o) {
|
||||
var select = document.getElementById(select_id);
|
||||
select.innerHTML = '';
|
||||
select.appendChild(document.createElement('option'));
|
||||
select.innerHTML = '';
|
||||
select.appendChild(document.createElement('option'));
|
||||
|
||||
var sections = YAHOO.lang.JSON.parse(o.responseText).sections
|
||||
for (i in sections) {
|
||||
var option = document.createElement('option');
|
||||
option.setAttribute('value',sections[i].id);
|
||||
option.appendChild(document.createTextNode(sections[i].code));
|
||||
select.appendChild(option);
|
||||
}
|
||||
},
|
||||
for (i in sections) {
|
||||
var option = document.createElement('option');
|
||||
option.setAttribute('value',sections[i].id);
|
||||
option.appendChild(document.createTextNode(sections[i].code));
|
||||
select.appendChild(option);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
failure : function (o) {
|
||||
// A handy function for doing pop-up confirmations when deleting something
|
||||
deleteConfirmation: function (url) {
|
||||
if (confirm("Are you really sure you want to delete this?\n\nOnce deleted it will be gone forever.")) {
|
||||
document.location.href = url;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* A handy function for doing pop-up confirmations when deleting something */
|
||||
COB.deleteConfirmation = function (url) {
|
||||
if (confirm("Are you really sure you want to delete this?\n\nOnce deleted it will be gone forever.")) {
|
||||
document.location.href = url;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 10d1cd5e1e2266ce2ff660620bfaba2340b400a1
|
|
@ -8,3 +8,5 @@
|
|||
?>
|
||||
</p>
|
||||
</div>
|
||||
<script type="text/javascript" src="<?php echo YUI; ?>/yui/yui-min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo BASE_URI; ?>/js/functions.js"></script>
|
||||
|
|
|
@ -9,13 +9,5 @@
|
|||
@import url('<?php echo BASE_URL; ?>/skins/origin-external/screen.css');
|
||||
@import url('<?php echo BASE_URL; ?>/skins/local/screen.css');
|
||||
</style>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/yahoo/yahoo-min.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/event/event-min.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/json/json-min.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/connection/connection-min.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/datasource/datasource-min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="<?php echo BASE_URL; ?>/js/functions.js"></script>
|
||||
|
||||
<title>Cemeteries</title>
|
||||
</head>
|
||||
|
|
Loading…
Reference in New Issue