-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LimeSurvey ERDs
- Loading branch information
Showing
42 changed files
with
10,220 additions
and
9,956 deletions.
There are no files selected for viewing
175 changes: 175 additions & 0 deletions
175
LimeSurveyQAImport/Notes/LMsqls_s348456_en_g1_20170614172322.sql
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<querybuilder version="8.3"> | ||
<source> | ||
<database charset="utf8" collation="utf8_unicode_ci">limesurvey</database> | ||
</source> | ||
<canvas> | ||
<table tablename="sdom_questions" alias="" left="885" top="50" width="150" height="278" /> | ||
<table tablename="sdom_question_attributes" alias="" left="1098" top="35" width="191" height="113" /> | ||
<table tablename="sdom_answers" alias="" left="623" top="118" width="150" height="143" /> | ||
<table tablename="sdom_assessments" alias="" left="1312" top="111" width="150" height="173" /> | ||
<table tablename="sdom_surveys" alias="" left="445" top="51" width="177" height="683" /> | ||
<table tablename="sdom_surveys_languagesettings" alias="" left="10" top="51" width="221" height="398" /> | ||
<table tablename="sdom_groups" alias="" left="1097" top="156" width="150" height="158" /> | ||
<table tablename="sdom_surveys" alias="sdom_surveys_1" left="625" top="470" width="179" height="263" /> | ||
<table tablename="sdom_users" alias="" left="256" top="479" width="150" height="248" /> | ||
<table tablename="sdom_user_groups" alias="" left="255" top="355" width="150" height="98" /> | ||
<table tablename="sdom_user_in_groups" alias="" left="65" top="464" width="150" height="113" /> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_questions" alias = "">qid</from> | ||
<to tablename = "sdom_question_attributes" alias = "">qid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_questions" alias = "">language</from> | ||
<to tablename = "sdom_question_attributes" alias = "">language</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_questions" alias = "">qid</from> | ||
<to tablename = "sdom_answers" alias = "">qid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_questions" alias = "">language</from> | ||
<to tablename = "sdom_answers" alias = "">language</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_questions" alias = "">scale_id</from> | ||
<to tablename = "sdom_answers" alias = "">scale_id</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_surveys" alias = "">sid</from> | ||
<to tablename = "sdom_questions" alias = "">sid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_surveys" alias = "">language</from> | ||
<to tablename = "sdom_questions" alias = "">language</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_questions" alias = "">language</from> | ||
<to tablename = "sdom_groups" alias = "">language</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_surveys" alias = "">sid</from> | ||
<to tablename = "sdom_surveys_languagesettings" alias = "">surveyls_survey_id</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_groups" alias = "">gid</from> | ||
<to tablename = "sdom_questions" alias = "">gid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_groups" alias = "">gid</from> | ||
<to tablename = "sdom_assessments" alias = "">gid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_groups" alias = "">sid</from> | ||
<to tablename = "sdom_assessments" alias = "">sid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_groups" alias = "">language</from> | ||
<to tablename = "sdom_assessments" alias = "">language</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_surveys" alias = "">sid</from> | ||
<to tablename = "sdom_groups" alias = "">sid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_users" alias = "">uid</from> | ||
<to tablename = "sdom_user_in_groups" alias = "">uid</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_user_groups" alias = "">owner_id</from> | ||
<to tablename = "sdom_surveys" alias = "">owner_id</to> | ||
</join> | ||
<join type = "Left Join"> | ||
<from tablename = "sdom_user_groups" alias = "">ugid</from> | ||
<to tablename = "sdom_user_in_groups" alias = "">ugid</to> | ||
</join> | ||
</canvas> | ||
<grid> | ||
</grid> | ||
</querybuilder> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
## Using PHP to access data in MS Access Databases | ||
|
||
* mdbtest.php - PHP file that extracts data from a table in an MDB database onto the web. | ||
* mdbtest.mdb - Sample MDF file for Web Display of contents | ||
* mdbtest_output.png - Output of the above script in web browser | ||
* Tools - Files in here provide Table definition and db analysis of MS Access Databases. | ||
* Tables.htm - Data Definition of categories table output from Documentor.mdb | ||
|
||
## Reference: | ||
|
||
* http://www.access-programmers.co.uk/forums/showthread.php?t=173624 | ||
* http://www.access-programmers.co.uk/forums/attachment.php?attachmentid=27478&d=1244626085 | ||
* http://mdbdoc.sourceforge.net/ | ||
* http://analyzer.codeplex.com/releases/view/615530 | ||
* http://btabdevelopment.com/free-access-tools/ | ||
|
||
## Using PHP to access data in MS Access Databases | ||
|
||
* mdbtest.php - PHP file that extracts data from a table in an MDB database onto the web. | ||
* mdbtest.mdb - Sample MDF file for Web Display of contents | ||
* mdbtest_output.png - Output of the above script in web browser | ||
* Tools - Files in here provide Table definition and db analysis of MS Access Databases. | ||
* Tables.htm - Data Definition of categories table output from Documentor.mdb | ||
|
||
## Reference: | ||
|
||
* http://www.access-programmers.co.uk/forums/showthread.php?t=173624 | ||
* http://www.access-programmers.co.uk/forums/attachment.php?attachmentid=27478&d=1244626085 | ||
* http://mdbdoc.sourceforge.net/ | ||
* http://analyzer.codeplex.com/releases/view/615530 | ||
* http://btabdevelopment.com/free-access-tools/ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<html> | ||
<Head> <H4><u>C:\Documenter.mdb</u></H4></head> | ||
<body> | ||
<br><b><u>1. categories</u></b><br> | ||
<br> Date Created : 9/29/2015 12:11:36 PM<br> | ||
<Table> | ||
<tr> | ||
<td width=150> Field Name </td> | ||
<td width=100> Type </td> | ||
<td width=100 align=right> Size </td> | ||
</tr><br> | ||
<tr> | ||
<td width=150>CatID</td> | ||
<td width=100>Long</td> | ||
<td align=right>4</td> | ||
</tr> | ||
<tr> | ||
<td width=150>Category</td> | ||
<td width=100>Text</td> | ||
<td align=right>20</td> | ||
</tr> | ||
</table> | ||
</body> </HTml> | ||
<html> | ||
<Head> <H4><u>C:\Documenter.mdb</u></H4></head> | ||
<body> | ||
<br><b><u>1. categories</u></b><br> | ||
<br> Date Created : 9/29/2015 12:11:36 PM<br> | ||
<Table> | ||
<tr> | ||
<td width=150> Field Name </td> | ||
<td width=100> Type </td> | ||
<td width=100 align=right> Size </td> | ||
</tr><br> | ||
<tr> | ||
<td width=150>CatID</td> | ||
<td width=100>Long</td> | ||
<td align=right>4</td> | ||
</tr> | ||
<tr> | ||
<td width=150>Category</td> | ||
<td width=100>Text</td> | ||
<td align=right>20</td> | ||
</tr> | ||
</table> | ||
</body> </HTml> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
<?php | ||
/* | ||
// Program : Connect to MDB (MS Access) tables and queries from PHP on Windows | ||
// Author : Ap.Muthu <[email protected]> | ||
// Version : 1.0 | ||
// Release Date : 2015-09-30 | ||
// Reference : http://stdioe.blogspot.in/2012/06/php-and-microsoft-access-database.html | ||
*/ | ||
|
||
$conn = new COM("ADODB.Connection") or die("ADODB Oops!"); | ||
$mdblocation = str_replace(']','/',dirname(__FILE__)) . '/' . 'mdbtest.mdb'; | ||
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)};DBQ=$mdblocation"); | ||
|
||
$data = $conn->Execute("SELECT * FROM categories ORDER BY Category ASC"); | ||
|
||
// $data = $conn->Execute("SELECT * FROM cats"); // cats is a query with the same sql as above | ||
|
||
print " | ||
<table border='1'> | ||
<tr><td align='center' colspan='2'><b>DATA</b></td></tr> | ||
<tr> | ||
<td><b>CatID</b></td> | ||
<td><b>Category</b></td> | ||
</tr> | ||
"; | ||
|
||
while (!$data->EOF) { | ||
print " | ||
<tr> | ||
<td>" . $data->Fields[0]->value . "</td> | ||
<td>" . $data->Fields[1]->value . "</td> | ||
</tr> | ||
"; | ||
$data->MoveNext(); | ||
} | ||
print "</table>"; | ||
?> | ||
<?php | ||
/* | ||
// Program : Connect to MDB (MS Access) tables and queries from PHP on Windows | ||
// Author : Ap.Muthu <[email protected]> | ||
// Version : 1.0 | ||
// Release Date : 2015-09-30 | ||
// Reference : http://stdioe.blogspot.in/2012/06/php-and-microsoft-access-database.html | ||
*/ | ||
|
||
$conn = new COM("ADODB.Connection") or die("ADODB Oops!"); | ||
$mdblocation = str_replace(']','/',dirname(__FILE__)) . '/' . 'mdbtest.mdb'; | ||
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)};DBQ=$mdblocation"); | ||
|
||
$data = $conn->Execute("SELECT * FROM categories ORDER BY Category ASC"); | ||
|
||
// $data = $conn->Execute("SELECT * FROM cats"); // cats is a query with the same sql as above | ||
|
||
print " | ||
<table border='1'> | ||
<tr><td align='center' colspan='2'><b>DATA</b></td></tr> | ||
<tr> | ||
<td><b>CatID</b></td> | ||
<td><b>Category</b></td> | ||
</tr> | ||
"; | ||
|
||
while (!$data->EOF) { | ||
print " | ||
<tr> | ||
<td>" . $data->Fields[0]->value . "</td> | ||
<td>" . $data->Fields[1]->value . "</td> | ||
</tr> | ||
"; | ||
$data->MoveNext(); | ||
} | ||
print "</table>"; | ||
?> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
## OrangeHRM Utilities by Ap.Muthu | ||
|
||
Tested with [OrangeHRM v3.3.3 Open Source Free Edition](https://sourceforge.net/projects/orangehrm/files/stable/3.3.3/orangehrm-3.3.3.zip) ( 11 MB ) | ||
|
||
* `ohrm_dbconnect` - MySQLi connection to the OrangeHRM database, sql-2-html-table, one-record-extraction-2-array functions | ||
* `getrss.php` - Parse the Active Jobs RSS feed into arrays - file can be placed even in non OrangeHRM website | ||
* `getvattach.php` - Public download Job Vacancy Attachment requested in the url parameter `vid` | ||
* `jobslist.php` - Use in external site's iframe filtered with url parameter `hid` for specific Manager / `'jid' for specific Job | ||
* `ohrm_composer.zip` - Avoid installing composer by unzipping into the OrangeHRM webroot | ||
## OrangeHRM Utilities by Ap.Muthu | ||
|
||
Tested with [OrangeHRM v3.3.3 Open Source Free Edition](https://sourceforge.net/projects/orangehrm/files/stable/3.3.3/orangehrm-3.3.3.zip) ( 11 MB ) | ||
|
||
* `ohrm_dbconnect` - MySQLi connection to the OrangeHRM database, sql-2-html-table, one-record-extraction-2-array functions | ||
* `getrss.php` - Parse the Active Jobs RSS feed into arrays - file can be placed even in non OrangeHRM website | ||
* `getvattach.php` - Public download Job Vacancy Attachment requested in the url parameter `vid` | ||
* `jobslist.php` - Use in external site's iframe filtered with url parameter `hid` for specific Manager / `'jid' for specific Job | ||
* `ohrm_composer.zip` - Avoid installing composer by unzipping into the OrangeHRM webroot |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
<?php | ||
/* | ||
// Program : Parse the OrangeHRM v3.3.3 Free Edition's RSS feed into an array | ||
// Author : Ap.Muthu <[email protected]> | ||
// Version : 1.0 | ||
// Release Date : 2017-08-05 | ||
// | ||
// Example Usage : | ||
// $jobs = jobs2array($feed_url); | ||
// echo print_r($jobs['head'], true); | ||
// echo print_r($jobs['items'], true); | ||
*/ | ||
|
||
# define OrangeHRM server url with webroot path | ||
define ('OHRM_URL', 'http://www.example.com/ohrm/'); | ||
// $rssfeed_url = 'OHRM_URL' . 'symfony/web/index.php/recruitmentApply/jobs.rss'; // without mod_rewrite pretty urls | ||
$rssfeed_url = 'OHRM_URL' . 'symfony/web/recruitmentApply/jobs.rss'; // with mod_rewrite pretty urls | ||
|
||
function jobs2array($rssfeed_url) { | ||
$feed = implode(file($rssfeed_url)); | ||
//$feed = str_replace(array('<![CDATA[', ']]>', '<pre>', '</pre>'), '', $feed); | ||
$xml = simplexml_load_string($feed, 'SimpleXMLElement', LIBXML_NOCDATA); | ||
$json = json_encode($xml); | ||
$data = json_decode($json,TRUE); | ||
|
||
$items = $data['channel']['item']; | ||
unset($data['channel']['item']); | ||
$head = $data['channel']; | ||
unset($data); | ||
$head['link'] = str_replace('/index.php', '', $head['link']); | ||
|
||
$mod_rewrite_used = ( strpos(rssfeed_url, '/index.php') === false ); | ||
|
||
# 'title' field for the 'item' is in the format "<position> - <manager>" | ||
# parse them into separate elements | ||
foreach ($items as $key => $item) { | ||
// list($position, $manager) = explode(' - ', $item['title']); | ||
list($items[$key]['position'], $items[$key]['manager']) = explode(' - ', $item['title']); | ||
if ($mod_rewrite_used) | ||
$items[$key]['link'] = str_replace('/index.php', '', $item['link']); // executed only for mod_rewrite pretty urls | ||
unset($items[$key]['title']); | ||
} | ||
$jobs = Array('head' => $head, 'items' => $items); | ||
return $jobs; | ||
} | ||
<?php | ||
/* | ||
// Program : Parse the OrangeHRM v3.3.3 Free Edition's RSS feed into an array | ||
// Author : Ap.Muthu <[email protected]> | ||
// Version : 1.0 | ||
// Release Date : 2017-08-05 | ||
// | ||
// Example Usage : | ||
// $jobs = jobs2array($feed_url); | ||
// echo print_r($jobs['head'], true); | ||
// echo print_r($jobs['items'], true); | ||
*/ | ||
|
||
# define OrangeHRM server url with webroot path | ||
define ('OHRM_URL', 'http://www.example.com/ohrm/'); | ||
// $rssfeed_url = 'OHRM_URL' . 'symfony/web/index.php/recruitmentApply/jobs.rss'; // without mod_rewrite pretty urls | ||
$rssfeed_url = 'OHRM_URL' . 'symfony/web/recruitmentApply/jobs.rss'; // with mod_rewrite pretty urls | ||
|
||
function jobs2array($rssfeed_url) { | ||
$feed = implode(file($rssfeed_url)); | ||
//$feed = str_replace(array('<![CDATA[', ']]>', '<pre>', '</pre>'), '', $feed); | ||
$xml = simplexml_load_string($feed, 'SimpleXMLElement', LIBXML_NOCDATA); | ||
$json = json_encode($xml); | ||
$data = json_decode($json,TRUE); | ||
|
||
$items = $data['channel']['item']; | ||
unset($data['channel']['item']); | ||
$head = $data['channel']; | ||
unset($data); | ||
$head['link'] = str_replace('/index.php', '', $head['link']); | ||
|
||
$mod_rewrite_used = ( strpos(rssfeed_url, '/index.php') === false ); | ||
|
||
# 'title' field for the 'item' is in the format "<position> - <manager>" | ||
# parse them into separate elements | ||
foreach ($items as $key => $item) { | ||
// list($position, $manager) = explode(' - ', $item['title']); | ||
list($items[$key]['position'], $items[$key]['manager']) = explode(' - ', $item['title']); | ||
if ($mod_rewrite_used) | ||
$items[$key]['link'] = str_replace('/index.php', '', $item['link']); // executed only for mod_rewrite pretty urls | ||
unset($items[$key]['title']); | ||
} | ||
$jobs = Array('head' => $head, 'items' => $items); | ||
return $jobs; | ||
} |
Oops, something went wrong.