├── .gitignore ├── JasperServer Resources ├── AccountEditReport-JRSExport.zip └── JS-embed-theme │ ├── embed-4.5.zip │ ├── embed-4.7-NoBack.zip │ ├── embed-4.7.zip │ ├── embedded.zip │ ├── embedded_noback.zip │ └── embedded_scdp.zip ├── LICENSE.txt ├── README.markdown ├── resources ├── PEST │ ├── Pest.php │ ├── PestJSON.php │ ├── PestXML.php │ ├── README.markdown │ └── examples │ │ ├── intouch_example.php │ │ ├── open_street_map_example.php │ │ └── rollcall_example.php ├── RESTclient.php ├── config.php ├── functions.php ├── jasper-rest │ ├── README │ ├── client │ │ ├── Attribute.php │ │ ├── Constants.php │ │ ├── JasperClient.php │ │ ├── Job.php │ │ ├── JobSummary.php │ │ ├── LICENSE-genxdesign.txt │ │ ├── Organization.php │ │ ├── Permission.php │ │ ├── README │ │ ├── REST_Request.php │ │ ├── ReportOptions.php │ │ ├── ResourceDescriptor.php │ │ ├── RestRequest.php │ │ ├── Role.php │ │ ├── User.php │ │ └── process.php │ ├── css │ │ └── main.css │ ├── docs │ │ ├── PHP_WordPress.txt │ │ ├── PHP_WordPress_Example.txt │ │ ├── PHP_wrapper.txt │ │ ├── code │ │ │ ├── attribute_new.txt │ │ │ ├── client_invokation.txt │ │ │ ├── create_report_options.txt │ │ │ ├── delete_report_options.txt │ │ │ ├── input_controls.txt │ │ │ ├── job_delete.txt │ │ │ ├── job_pause.txt │ │ │ ├── job_post.txt │ │ │ ├── job_put.txt │ │ │ ├── job_resume.txt │ │ │ ├── jobsummary_get.txt │ │ │ ├── organization_delete.txt │ │ │ ├── organization_get.txt │ │ │ ├── organization_post.txt │ │ │ ├── organization_put.txt │ │ │ ├── permission_delete.txt │ │ │ ├── permission_get.txt │ │ │ ├── permission_update.txt │ │ │ ├── report_options.txt │ │ │ ├── repository_get.txt │ │ │ ├── resource_delete.txt │ │ │ ├── resource_get.txt │ │ │ ├── resource_post.txt │ │ │ ├── resource_put.txt │ │ │ ├── role_delete.txt │ │ │ ├── role_get.txt │ │ │ ├── role_post.txt │ │ │ ├── role_put.txt │ │ │ ├── run_report_file.txt │ │ │ ├── run_report_html.txt │ │ │ ├── run_report_ic.txt │ │ │ ├── user_delete.txt │ │ │ ├── user_get.txt │ │ │ ├── user_post.txt │ │ │ └── user_put.txt │ │ ├── highlight │ │ │ ├── AUTHORS.en.txt │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── README.ru.md │ │ │ ├── classref.txt │ │ │ ├── highlight.pack.js │ │ │ └── styles │ │ │ │ ├── arta.css │ │ │ │ ├── ascetic.css │ │ │ │ ├── brown_paper.css │ │ │ │ ├── brown_papersq.png │ │ │ │ ├── dark.css │ │ │ │ ├── default.css │ │ │ │ ├── far.css │ │ │ │ ├── github.css │ │ │ │ ├── googlecode.css │ │ │ │ ├── idea.css │ │ │ │ ├── ir_black.css │ │ │ │ ├── magula.css │ │ │ │ ├── monokai.css │ │ │ │ ├── pojoaque.css │ │ │ │ ├── pojoaque.jpg │ │ │ │ ├── school_book.css │ │ │ │ ├── school_book.png │ │ │ │ ├── solarized_dark.css │ │ │ │ ├── solarized_light.css │ │ │ │ ├── sunburst.css │ │ │ │ ├── vs.css │ │ │ │ ├── xcode.css │ │ │ │ └── zenburn.css │ │ ├── index.php │ │ └── index_static.html │ ├── getuser.php │ ├── index.php │ ├── js │ │ └── main.js │ └── phpunit │ │ ├── AttributeServiceTest.php │ │ ├── JobsServiceTest.php │ │ ├── OrganizationServiceTest.php │ │ ├── PermissionServiceTest.php │ │ ├── ReportOptionsTest.php │ │ ├── ResourceServiceTest.php │ │ ├── RoleServiceTest.php │ │ ├── RunReportTest.php │ │ ├── UserServiceTest.php │ │ ├── lib │ │ └── JasperTestUtils.php │ │ ├── resources │ │ └── pitbull.jpg │ │ └── test.properties ├── logs │ └── general.log └── php-markdown-extra-1.2.5 │ ├── License.text │ ├── PHP Markdown Extra Readme.text │ └── markdown.php └── web_root ├── .htaccess ├── PHP-Class-Docs.php ├── about.php ├── accountedit.php ├── css ├── blueprint │ ├── ie.css │ ├── plugins │ │ ├── buttons │ │ │ ├── icons │ │ │ │ ├── cross.png │ │ │ │ ├── key.png │ │ │ │ └── tick.png │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ ├── fancy-type │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ ├── link-icons │ │ │ ├── icons │ │ │ │ ├── doc.png │ │ │ │ ├── email.png │ │ │ │ ├── external.png │ │ │ │ ├── feed.png │ │ │ │ ├── im.png │ │ │ │ ├── pdf.png │ │ │ │ ├── visited.png │ │ │ │ └── xls.png │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ ├── rtl │ │ │ ├── readme.txt │ │ │ └── screen.css │ │ └── tabs │ │ │ ├── AUTHORS.textile │ │ │ ├── README.textile │ │ │ └── screen.css │ ├── print.css │ ├── screen.css │ └── src │ │ ├── forms.css │ │ ├── grid.css │ │ ├── grid.png │ │ ├── ie.css │ │ ├── print.css │ │ ├── reset.css │ │ └── typography.css ├── dropdown │ ├── dropdown.css │ ├── dropdown.limited.css │ ├── dropdown.linear.columnar.css │ ├── dropdown.linear.css │ ├── dropdown.min.css │ ├── dropdown.upward.css │ ├── dropdown.vertical.css │ ├── dropdown.vertical.rtl.css │ └── themes │ │ ├── _template │ │ ├── default.css │ │ └── images │ │ │ └── spacer.gif │ │ ├── adobe.com │ │ ├── default.advanced.css │ │ ├── default.css │ │ ├── helper.css │ │ └── images │ │ │ ├── dropdown_pane.png │ │ │ ├── dropdown_pane_8bit.png │ │ │ ├── favicon.ico │ │ │ ├── grad1.png │ │ │ └── icon.png │ │ ├── default │ │ ├── default.advanced.css │ │ ├── default.css │ │ ├── default.linear.css │ │ ├── default.ultimate.css │ │ ├── default.ultimate.linear.css │ │ ├── helper.css │ │ └── images │ │ │ ├── grad1.png │ │ │ ├── grad2.png │ │ │ ├── nav-arrow-down-white.png │ │ │ ├── nav-arrow-down.png │ │ │ ├── nav-arrow-left-white.png │ │ │ ├── nav-arrow-left.png │ │ │ ├── nav-arrow-right-white.png │ │ │ ├── nav-arrow-right.png │ │ │ ├── nav-arrow-top-white.png │ │ │ ├── nav-arrow-top.png │ │ │ └── pattern1.png │ │ ├── flickr.com │ │ ├── default.css │ │ ├── default.ultimate.css │ │ ├── default.ultimate.linear.css │ │ ├── default.ultimate.upward.css │ │ ├── helper.css │ │ └── images │ │ │ ├── favicon.ico │ │ │ ├── icon.png │ │ │ ├── nav-arrow-down-on.png │ │ │ ├── nav-arrow-down-open.png │ │ │ ├── nav-arrow-down.png │ │ │ ├── nav-arrow-left-on.png │ │ │ ├── nav-arrow-left-open.png │ │ │ ├── nav-arrow-left.png │ │ │ ├── nav-arrow-right-on.png │ │ │ ├── nav-arrow-right-open.png │ │ │ ├── nav-arrow-right.png │ │ │ ├── nav-arrow-up-on.png │ │ │ ├── nav-arrow-up-open.png │ │ │ ├── nav-arrow-up.png │ │ │ ├── pattern1.png │ │ │ ├── pattern2.png │ │ │ └── pattern3.png │ │ ├── lwis.celebrity │ │ ├── default.advanced.css │ │ ├── default.css │ │ ├── helper.css │ │ └── images │ │ │ ├── grad1.png │ │ │ ├── grad2.png │ │ │ ├── logo_lwis.png │ │ │ ├── nav-arrow-down-white.png │ │ │ ├── nav-arrow-down.png │ │ │ ├── nav-arrow-left-white.png │ │ │ ├── nav-arrow-left.png │ │ │ ├── nav-arrow-right-white.png │ │ │ ├── nav-arrow-right.png │ │ │ ├── nav-arrow-top-white.png │ │ │ ├── nav-arrow-top.png │ │ │ ├── pattern1.png │ │ │ └── pattern2.png │ │ ├── mtv.com │ │ ├── default.advanced.css │ │ ├── default.css │ │ ├── default.ultimate.css │ │ ├── helper.css │ │ └── images │ │ │ ├── comnav-arrowon.png │ │ │ ├── comnav-arrowover.png │ │ │ ├── comnav-arrowover2.png │ │ │ ├── favicon.ico │ │ │ ├── grad1.png │ │ │ ├── icon.png │ │ │ ├── nav-arrow-right.png │ │ │ ├── nav-arrow-right2.png │ │ │ └── nav-sub-press.png │ │ ├── nvidia.com │ │ ├── default.advanced.css │ │ ├── default.css │ │ ├── helper.css │ │ └── images │ │ │ ├── favicon.ico │ │ │ ├── grad1.png │ │ │ └── icon.png │ │ └── vimeo.com │ │ ├── default.advanced.css │ │ ├── default.css │ │ ├── helper.css │ │ └── images │ │ ├── bg_search-field.png │ │ ├── box1-bottom.png │ │ ├── box1-bottom2.png │ │ ├── box1-outwards-top-right.png │ │ ├── box1-top-left.png │ │ ├── box1-top-right.png │ │ ├── box1-top.png │ │ ├── btn_search.png │ │ ├── favicon.ico │ │ ├── icon.png │ │ ├── logo_lwis.png │ │ ├── nav-arrow-down-green.png │ │ ├── nav-arrow-down.png │ │ ├── nav-arrow-left.png │ │ ├── nav-arrow-right-green.png │ │ ├── nav-arrow-right.png │ │ ├── nav-arrow-top.png │ │ └── sun.png └── style.css ├── docs ├── PHP_WordPress.txt ├── PHP_WordPress_Example.txt ├── PHP_wrapper.txt ├── code │ ├── attribute_new.txt │ ├── client_invokation.txt │ ├── create_report_options.txt │ ├── delete_report_options.txt │ ├── input_controls.txt │ ├── job_delete.txt │ ├── job_pause.txt │ ├── job_post.txt │ ├── job_put.txt │ ├── job_resume.txt │ ├── jobsummary_get.txt │ ├── organization_delete.txt │ ├── organization_get.txt │ ├── organization_post.txt │ ├── organization_put.txt │ ├── permission_delete.txt │ ├── permission_get.txt │ ├── permission_update.txt │ ├── report_options.txt │ ├── repository_get.txt │ ├── resource_delete.txt │ ├── resource_get.txt │ ├── resource_post.txt │ ├── resource_put.txt │ ├── role_delete.txt │ ├── role_get.txt │ ├── role_post.txt │ ├── role_put.txt │ ├── run_report_file.txt │ ├── run_report_html.txt │ ├── run_report_ic.txt │ ├── user_delete.txt │ ├── user_get.txt │ ├── user_post.txt │ └── user_put.txt ├── highlight │ ├── AUTHORS.en.txt │ ├── LICENSE │ ├── README.md │ ├── README.ru.md │ ├── classref.txt │ ├── highlight.pack.js │ └── styles │ │ ├── arta.css │ │ ├── ascetic.css │ │ ├── brown_paper.css │ │ ├── brown_papersq.png │ │ ├── dark.css │ │ ├── default.css │ │ ├── far.css │ │ ├── github.css │ │ ├── googlecode.css │ │ ├── idea.css │ │ ├── ir_black.css │ │ ├── magula.css │ │ ├── monokai.css │ │ ├── pojoaque.css │ │ ├── pojoaque.jpg │ │ ├── school_book.css │ │ ├── school_book.png │ │ ├── solarized_dark.css │ │ ├── solarized_light.css │ │ ├── sunburst.css │ │ ├── vs.css │ │ ├── xcode.css │ │ └── zenburn.css ├── index.php └── index_static.html ├── htacces_sample ├── iframe.php ├── images ├── bluechk.gif ├── bull-arrow-orange.gif ├── bull-arrow.gif ├── bullet.gif ├── doc-icon.gif ├── doc.gif ├── icon-comment.png ├── icon-delete.gif ├── icon-edit.gif ├── icon-file.gif ├── icon-folder.png ├── icon-upgrade.gif ├── lock.gif ├── locked.jpg ├── pdf.gif ├── ppt.gif └── txt.gif ├── index.php ├── js ├── csshover.htc ├── jquery │ ├── jquery.dropdown.js │ └── jquery.js ├── mootools │ └── mootools.dropdown.js ├── scriptaculous │ └── scriptaculous.dropdown.js └── swfobject.js ├── login.php ├── logout.php ├── repository.php ├── scheduler.php ├── schedulerJob.php └── viewReport.php /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | *.pyc 3 | *.pyo 4 | .DS_Store 5 | .project 6 | .settings 7 | -------------------------------------------------------------------------------- /JasperServer Resources/AccountEditReport-JRSExport.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/JasperServer Resources/AccountEditReport-JRSExport.zip -------------------------------------------------------------------------------- /JasperServer Resources/JS-embed-theme/embed-4.5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/JasperServer Resources/JS-embed-theme/embed-4.5.zip -------------------------------------------------------------------------------- /JasperServer Resources/JS-embed-theme/embed-4.7-NoBack.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/JasperServer Resources/JS-embed-theme/embed-4.7-NoBack.zip -------------------------------------------------------------------------------- /JasperServer Resources/JS-embed-theme/embed-4.7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/JasperServer Resources/JS-embed-theme/embed-4.7.zip -------------------------------------------------------------------------------- /JasperServer Resources/JS-embed-theme/embedded.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/JasperServer Resources/JS-embed-theme/embedded.zip -------------------------------------------------------------------------------- /JasperServer Resources/JS-embed-theme/embedded_noback.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/JasperServer Resources/JS-embed-theme/embedded_noback.zip -------------------------------------------------------------------------------- /JasperServer Resources/JS-embed-theme/embedded_scdp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/JasperServer Resources/JS-embed-theme/embedded_scdp.zip -------------------------------------------------------------------------------- /resources/PEST/PestJSON.php: -------------------------------------------------------------------------------- 1 | = 400 status codes, an exception is thrown with $e->getMessage() 16 | * containing the error message that the server produced. User code will have to 17 | * json_decode() that manually, if applicable, because the PHP Exception base 18 | * class does not accept arrays for the exception message and some JSON/REST servers 19 | * do not produce nice JSON 20 | * 21 | * See http://github.com/educoder/pest for details. 22 | * 23 | * This code is licensed for use, modification, and distribution 24 | * under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License) 25 | */ 26 | class PestJSON extends Pest 27 | { 28 | public function post($url, $data, $headers=array()) { 29 | return parent::post($url, json_encode($data), $headers); 30 | } 31 | 32 | public function put($url, $data, $headers=array()) { 33 | return parent::put($url, json_encode($data), $headers); 34 | } 35 | 36 | protected function prepRequest($opts, $url) { 37 | $opts[CURLOPT_HTTPHEADER][] = 'Accept: application/json'; 38 | $opts[CURLOPT_HTTPHEADER][] = 'Content-Type: application/json'; 39 | return parent::prepRequest($opts, $url); 40 | } 41 | 42 | public function processBody($body) { 43 | return json_decode($body, true); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /resources/PEST/PestXML.php: -------------------------------------------------------------------------------- 1 | tag in the response is assumed to be the error mssage) 16 | * 17 | * See http://github.com/educoder/pest for details. 18 | * 19 | * This code is licensed for use, modification, and distribution 20 | * under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License) 21 | */ 22 | class PestXML extends Pest { 23 | public function processBody($body) { 24 | libxml_use_internal_errors(true); 25 | if (empty($body) || preg_match('/^\s+$/', $body)) 26 | return null; 27 | 28 | $xml = simplexml_load_string($body); 29 | 30 | if (!$xml) { 31 | $err = "Couldn't parse XML response because:\n"; 32 | foreach(libxml_get_errors() as $xml_err) 33 | $err .= "\n - " . $xml_err->message; 34 | $err .= "\nThe response was:\n"; 35 | $err .= $body; 36 | throw new PestXML_Exception($err); 37 | } 38 | 39 | return $xml; 40 | } 41 | 42 | public function processError($body) { 43 | try { 44 | $xml = $this->processBody($body); 45 | if (!$xml) 46 | return $body; 47 | 48 | $error = $xml->xpath('//error'); 49 | 50 | if ($error && $error[0]) 51 | return strval($error[0]); 52 | else 53 | return $body; 54 | } catch (PestXML_Exception $e) { 55 | return $body; 56 | } 57 | } 58 | } 59 | 60 | class PestXML_Exception extends Pest_Exception { } 61 | 62 | ?> -------------------------------------------------------------------------------- /resources/PEST/examples/open_street_map_example.php: -------------------------------------------------------------------------------- 1 | get('/map?bbox=-79.39997,43.65827,-79.39344,43.66903'); 14 | 15 | // Print all of the street names in the map 16 | $streets = $map->xpath('//way/tag[@k="name"]'); 17 | foreach ($streets as $s) { 18 | echo $s['v'] . "\n"; 19 | } 20 | 21 | ?> -------------------------------------------------------------------------------- /resources/PEST/examples/rollcall_example.php: -------------------------------------------------------------------------------- 1 | get('/users.xml'); 14 | 15 | foreach($users->user as $user) { 16 | echo $user->{'display-name'}." (".$user->username.")\n"; 17 | } 18 | echo "\n"; 19 | 20 | // Create a new User 21 | $data = array( 22 | 'user' => array( 23 | 'username' => "jcricket", 24 | 'password' => "pinocchio", 25 | 'display_name' => "Jiminy Cricket", 26 | 'kind' => "Student" 27 | ) 28 | ); 29 | 30 | $user = $pest->post('/users.xml', $data); 31 | 32 | echo "New User's ID: ".$user->id."\n"; 33 | echo "\n"; 34 | 35 | 36 | // Update the newly created User's attributes 37 | $data = array( 38 | 'user' => array( 39 | 'kind' => "Instructor", 40 | 'metadata' => array( 41 | 'gender' => 'male', 42 | 'age' => 30 43 | ) 44 | ) 45 | ); 46 | 47 | $pest->put('/users/'.$user->id.'.xml', $data); 48 | 49 | 50 | // Retrieve the User 51 | $user = $pest->get('/users/'.$user->id.'.xml'); 52 | echo "User XML: \n"; 53 | echo $user->asXML(); 54 | echo "\n"; 55 | echo "Name: ".$user->{'display-name'}."\n"; 56 | echo "Kind: ".$user->kind."\n"; 57 | echo "Age: ".$user->metadata->age."\n"; 58 | echo "\n"; 59 | 60 | // Delete the User 61 | $user = $pest->delete('/users/'.$user->id.'.xml'); 62 | 63 | 64 | // Try to create a User with invalid data (missing username) 65 | $data = array( 66 | 'user' => array( 67 | 'password' => "pinocchio", 68 | 'display_name' => "Jiminy Cricket", 69 | 'kind' => "Student" 70 | ) 71 | ); 72 | 73 | try { 74 | $user = $pest->post('/users.xml', $data); 75 | } catch (Pest_InvalidRecord $e) { 76 | echo $e->getMessage(); 77 | echo "\n"; 78 | } 79 | 80 | ?> -------------------------------------------------------------------------------- /resources/jasper-rest/client/Constants.php: -------------------------------------------------------------------------------- 1 | . 22 | 23 | =========================================================================== */ 24 | namespace Jasper; 25 | 26 | /* Constants 27 | * 28 | * contains constants to be used by the JasperClient class 29 | * 30 | * author: gbacon 31 | * date: 06/06/2012 32 | */ 33 | 34 | // ASCII URL codes 35 | const PIPE = "%7C"; 36 | const AMPERSAND = "%26"; 37 | 38 | 39 | // URLs 40 | const PROTOCOL = "http://"; 41 | const BASE_REST_URL = "/rest"; 42 | const BASE_REST2_URL = "/rest_v2"; 43 | const ATTRIBUTE_BASE_URL = "/attribute"; 44 | const USER_BASE_URL = "/user"; 45 | const ORGANIZATION_BASE_URL = "/organization"; 46 | const ROLE_BASE_URL = "/role"; 47 | const REPORTS_BASE_URL = "/reports"; 48 | const LOGIN_BASE_URL = "/login"; 49 | 50 | // XML 51 | const ENTITY_RESOURCE_ROOT_XML = ""; 52 | const USER_RESOURCE_ROOT_XML = ""; 53 | 54 | ?> -------------------------------------------------------------------------------- /resources/jasper-rest/client/LICENSE-genxdesign.txt: -------------------------------------------------------------------------------- 1 | Sample code for the REST restful requests taken and slightly modified from the location below. 2 | 3 | 4 | Ian Selby is the original author: 5 | http://www.gen-x-design.com/archives/making-restful-requests-in-php/ 6 | http://www.gen-x-design.com/ -------------------------------------------------------------------------------- /resources/jasper-rest/client/README: -------------------------------------------------------------------------------- 1 | php-rest-sample 2 | ----------- 3 | This sample provides a library to interface with the REST API. 4 | 5 | 6 | Requirements 7 | ----------- 8 | To use the sample, you will need: 9 | * Web server running PHP 5.3 10 | * XML_Serializer PEAR package (http://pear.php.net/manual/en/package.xml.xml-serializer.php) 11 | 12 | See the php documentation for inforation about installing pear packages. 13 | 14 | 15 | Installation 16 | ------------ 17 | Make sure you have a web-server and PHP processor installed. For simplicity it is suggested to run 18 | Z-WAMP (http://zwamp.sourceforge.net/). However for a more scalable solution Apache and PHP can be installed and 19 | configured manually. 20 | 21 | Configure 'php.ini' so that the value for `Date.timezone` matches your location. A list of accepted values 22 | can be found on the PHP website. The values correlate with the universally unix accepted timezone names. 23 | Example: Date.timezone = "America/Los_Angeles" 24 | 25 | Install PEAR and use it to install the XML_Serializer package `pear install -f XML_Serializer` 26 | 27 | -------------------------------------------------------------------------------- /resources/jasper-rest/client/process.php: -------------------------------------------------------------------------------- 1 | 'false', 'role' => 'ROLE_USER'), 'true', 'false'); 18 | $jc->putUsers($newUser); 19 | } 20 | ?> -------------------------------------------------------------------------------- /resources/jasper-rest/css/main.css: -------------------------------------------------------------------------------- 1 | body { font-family: Helvetica, Tahoma, Arial; } -------------------------------------------------------------------------------- /resources/jasper-rest/docs/PHP_WordPress.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/resources/jasper-rest/docs/PHP_WordPress.txt -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/attribute_new.txt: -------------------------------------------------------------------------------- 1 | 2 | $state_attribute = new Jasper\Attribute('State', 'Oklahoma'); 3 | $city_attribute = new Jasper\Attribute('Cities', 'Norman, Tulsa, Stillwater'); 4 | $attributes_to_add = array($state_attribute, $city_attribute); 5 | 6 | $user = $client->getUsers('intern_developer'); // a user object is required to be passed to the attribute function 7 | $client->postAttributes($user, $attributes_to_add); 8 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/client_invokation.txt: -------------------------------------------------------------------------------- 1 | 2 | require_once "client/JasperClient.php"; 3 | 4 | $client = new Jasper\JasperClient('localhost', // Hostname 5 | 8080, // Port 6 | 'jasperadmin', // Username 7 | 'jasperadmin', // Password 8 | '/jasperserver-pro', // Base URL 9 | 'organization_1'); // Organization (pro only) 10 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/create_report_options.txt: -------------------------------------------------------------------------------- 1 | 2 | $success = $client->updateReportOptions( 3 | '/reports/samples/Cascading_multi_select_report', 4 | array('Country_multi_select' => array('Canada', 'USA'), 'Cascading_state_multi_select' => array('OR', 'WA', 'BC')), 5 | 'CanadaUSA', 6 | 'true'); 7 | if ($success) { 8 | echo "Created new report option successfully"; 9 | } 10 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/delete_report_options.txt: -------------------------------------------------------------------------------- 1 | 2 | try { 3 | $client->deleteReportOptions('/reports/samples/Cascading_multi_select_report', 'CanadaUSA'); 4 | } catch (Exception $e) { 5 | printf("An exception was thrown: ", $e->getMessage()); 6 | } 7 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/input_controls.txt: -------------------------------------------------------------------------------- 1 | 2 | $input_controls = $client->getReportInputControls('/reports/samples/Cascading_multi_select_report'); 3 | 4 | foreach($input_controls as $ic) { 5 | printf('Key: %s
', $ic->getId()); 6 | foreach ($ic->getOptions() as $ico) { 7 | printf(' -- Value: %s
', $ico['label']); 8 | } 9 | } -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/job_delete.txt: -------------------------------------------------------------------------------- 1 | 2 | try { 3 | $jobs = $client->getJobs('jobName', true); // request job by label 4 | if (count($jobs) > 1) { 5 | echo "More than one job found, be more specific."; 6 | } 7 | else { 8 | if($client->deleteJob($jobs[0]->getId())) { 9 | printf('Deleting job: %s (Job ID: %s) was successful!', $jobs[0]->getLabel(), $jobs[0]->getId()); 10 | } 11 | } 12 | } catch (Exception $e) { 13 | printf('Deleting a job failed: %s', $e->getMessage()); 14 | } 15 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/job_pause.txt: -------------------------------------------------------------------------------- 1 | 2 | try { 3 | if($client->pauseJob()) { 4 | printf('All jobs were successfully paused.'); 5 | } 6 | } catch (Exception $e) { 7 | printf('Unable to pause all jobs. Error: %s', $e->getMessage()); 8 | } 9 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/job_post.txt: -------------------------------------------------------------------------------- 1 | 2 | $jobs = $client->getJobs(); 3 | $oj = $client->getJob($jobs[0]->getId()); 4 | $oj->label = "New Label"; 5 | $oj->mailNotification['toAddresses']['address'][] = "email@example.com"; 6 | 7 | $client->postJob($oj); 8 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/job_put.txt: -------------------------------------------------------------------------------- 1 | 2 | $result = new Job(); 3 | $result->baseOutputFilename = 'test'; 4 | $result->repositoryDestination['folderURI'] = '/folder/for/reports'; 5 | $result->repositoryDestination['overwriteFiles'] = 'false'; 6 | $result->repositoryDestination['sequentialFilenames'] = 'false'; 7 | $result->description = 'test'; 8 | $result->label = 'test'; 9 | $result->outputFormats['outputFormat'][] = 'PDF'; 10 | $result->outputFormats['outputFormat'][] = 'XLS'; 11 | $result->outputFormats['outputFormat'][] = 'RTF'; 12 | $result->source['reportUnitURI'] = '/reports/samples/AllAccounts'; 13 | $result->simpleTrigger['recurrenceInterval'] = '1'; 14 | $result->simpleTrigger['recurrenceIntervalUnit'] = 'DAY'; 15 | $result->simpleTrigger['occurrenceCount'] = '2'; 16 | $result->simpleTrigger['startDate'] = '2025-01-26T00:00:00-07:00'; 17 | $result->simpleTrigger['timezone'] = 'America/Los_Angeles'; 18 | 19 | $client->putJob($result); -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/job_resume.txt: -------------------------------------------------------------------------------- 1 | 2 | try { 3 | $job = $client->getJobs('dailyReport', true); 4 | $job_id = $job[0]->getId(); 5 | $job_label = $job[0]->getLabel(); 6 | if ($client->resumeJob($job_id)) { 7 | printf('Successfully resumed job: %s (name: %s)', $job_id, $job_label); 8 | } else { 9 | printf('Error resuming job: %s (name: %s)', $job_id, $job_label); 10 | } 11 | } catch (Exception $e) { 12 | printf('Unable to resume job. Error: %s', $e->getMessage()); 13 | } 14 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/jobsummary_get.txt: -------------------------------------------------------------------------------- 1 | 2 | try { 3 | $jobs = $client->getJobs('dailyReport', true); // can also use a URI... i.e: $client->getJobs('/reports/samples/AllAccounts'); 4 | if(count($jobs) >= 1) { 5 | foreach($jobs as $job) { 6 | printf('Job Name: %s
Job ID: %s

', $job->getLabel(), $job->getId()); 7 | } 8 | } 9 | } catch (Exception $e) { 10 | printf('Requesting scheduled jobs failed: %s', $e->getMessage()); 11 | } 12 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/organization_delete.txt: -------------------------------------------------------------------------------- 1 | 2 | $organization_to_remove = $client->getOrganization('test_organization'); 3 | 4 | try { 5 | $client->deleteOrganization($organization_to_remove); 6 | } catch (Exception $e) { 7 | printf('Organization deletion failure: %s', $e->getMessage()); 8 | } 9 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/organization_get.txt: -------------------------------------------------------------------------------- 1 | 2 | $organization = $client->getOrganization('test_organization'); 3 | print_r($organization); 4 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/organization_post.txt: -------------------------------------------------------------------------------- 1 | 2 | $organization = $client->getOrganization('test_organization'); 3 | $organization->setTenantDesc('An organization not yet ready for the world.'); 4 | 5 | try { 6 | $client->postOrganization($organization); 7 | } catch (Exception $e) { 8 | printf('Unable to modify organization: %s', $e->getMessage()); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/organization_put.txt: -------------------------------------------------------------------------------- 1 | 2 | $new_organization = new Jasper\Organization( 3 | 'test_organization', // alias 4 | 'test_organization', // id 5 | 'organization_1', // parent organization 6 | 'test_organization'); // tenantName 7 | 8 | try { 9 | $client->putOrganization($new_organization); 10 | } catch (Exception $e) { 11 | printf('Creating organization failed: %s', $e->getMessage()); 12 | } 13 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/permission_delete.txt: -------------------------------------------------------------------------------- 1 | 2 | $permissions = $client->getPermissions('/dashboards'); 3 | 4 | foreach ($permissions as $p) { 5 | $recipient = $p->getPermissionRecipient(); 6 | if($recipient instanceof Jasper\User) { 7 | $client->deletePermission($p); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/permission_get.txt: -------------------------------------------------------------------------------- 1 | 2 | $permissions = $client->getPermissions('/dashboards'); 3 | 4 | foreach ($permissions as $p) { 5 | $recipient = $p->getPermissionRecipient(); 6 | if($recipient instanceof Jasper\User) { 7 | printf("%s has permisison mask of %s
", $recipient->getUsername(), $p->getPermissionMask()); 8 | } elseif ($recipient instanceof Jasper\Role) { 9 | printf("Role %s has permission mask of %s
", $recipient->getRoleName(), $p->getPermissionMask()); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/permission_update.txt: -------------------------------------------------------------------------------- 1 | 2 | $resource = $client->getResource('/images/JRLogo'); 3 | $joeuser = $client->getUsers('joeuser'); 4 | $perms = $client->getPermissions($resource->getUriString()); 5 | 6 | $perm = new Permission('1', $joeuser[0], $resource->getUriString()); 7 | $perms[] = $perm; 8 | 9 | $client->updatePermissions($resource->getUriString(), $perms); 10 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/report_options.txt: -------------------------------------------------------------------------------- 1 | 2 | $report_options = $client->getReportOptions('/reports/samples/Cascading_multi_select_report'); 3 | 4 | foreach($report_options as $ro) { 5 | echo $ro->getLabel() . "
"; 6 | } -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/repository_get.txt: -------------------------------------------------------------------------------- 1 | 2 | $repository = $client->getRepository(); // Providing no arguments requests top level all resources 3 | 4 | foreach ($repository as $resourceDescriptor) { 5 | echo '
';
 6 | 	printf('Resource Name: %s 
', $resourceDescriptor->getName()); 7 | echo htmlentities($resourceDescriptor); // Prints XML of each resourceDescriptor object 8 | echo '
'; 9 | } 10 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/resource_delete.txt: -------------------------------------------------------------------------------- 1 | 2 | try { 3 | $success = $client->deleteResource('/images/presacanario'); 4 | } catch (Exception $e) { 5 | printf('Unable to delete resource: ' . $e->getMessage()); 6 | } 7 | 8 | if ($success) { 9 | printf('The resource was succesfully deleted.'); 10 | } 11 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/resource_get.txt: -------------------------------------------------------------------------------- 1 | 2 | try { 3 | $resource = $client->getResource('/reports/samples/Cascading_multi_select_report_files/Cascading_state_multi_select', 4 | null, 5 | '/datasources/JServerJNDIDS', 6 | null, 7 | array('Country_multi_select', array('USA', 'Mexico')) 8 | ); 9 | 10 | echo $resource; 11 | } catch (Exception $e) { 12 | printf("Resource GET failed: %s", $e->getMessage()); 13 | } 14 | 15 | 16 | // Or you could request files with binary data such as an image 17 | 18 | $image = $client->getResource('/images/JRLogo', true); // The true flag requests the file data, not the descriptor 19 | 20 | printf("", base64_encode($image)); // This only works on modern browsers -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/resource_post.txt: -------------------------------------------------------------------------------- 1 | 2 | $folder = $client->getResource('/test'); 3 | $folder->setLabel('New Folder Label'); 4 | 5 | $client->postResource('/test', $folder); 6 | 7 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/resource_put.txt: -------------------------------------------------------------------------------- 1 | 2 | $rd = new Jasper\ResourceDescriptor('presacanario', 'img', '/images/presacanario', 'true'); 3 | $rd->setLabel('prescanario'); 4 | $rd->setDescription('Ancestors of pitbulls'); 5 | $rd->addProperty(new Jasper\ResourceProperty('PROP_PARENT_FOLDER', '/images')); 6 | $rd->addProperty(new Jasper\ResourceProperty('PROP_HAS_DATA', 'true')); 7 | 8 | try { 9 | $result = $client->putResource('', $rd, '/home/user/images/presa_canario.jpg'); 10 | } catch (Exception $e) { 11 | printf('Unable to upload resource: %s', $e->getMessage()); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/role_delete.txt: -------------------------------------------------------------------------------- 1 | 2 | $role_vice_principal = $client->getRoles('ROLE_VICE_PRINCIPAL', 'organization_1'); 3 | 4 | try { 5 | $client->deleteRole($role_vice_principal); 6 | } catch (Exception $e) { 7 | printf('Deleting role failed: %s', $e->getMessage()); 8 | } 9 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/role_get.txt: -------------------------------------------------------------------------------- 1 | 2 | $all_roles = $client->getRoles(); 3 | print_r($all_roles); 4 | 5 | $role_user = $client->getRoles('ROLE_USER'); 6 | print_r($role_user); 7 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/role_post.txt: -------------------------------------------------------------------------------- 1 | 2 | $role = $client->getRoles('ROLE_VICE_PRINCIPAL', 'organization_1'); 3 | $old_role_name = $role->getRoleName(); // Here we store the old role's name 4 | $role->setRoleName('ROLE_HALLWAY_MONITOR'); 5 | 6 | try { 7 | $client->postRole($role, $old_role_name); 8 | } catch (Exception $e) { 9 | printf('Updating role failed: %s', $e->getMessage()); 10 | } 11 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/role_put.txt: -------------------------------------------------------------------------------- 1 | 2 | $role_to_add = new Jasper\Role('ROLE_VICE_PRINCIPAL', 'organization_1'); 3 | 4 | try { 5 | $client->putRole($role_to_add); 6 | } catch (Exception $e) { 7 | printf('Adding role failed: %s', $e->getMessage()); 8 | } 9 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/run_report_file.txt: -------------------------------------------------------------------------------- 1 | 2 | $report = $client->runReport('/reports/samples/AllAccounts', 'pdf'); 3 | 4 | header('Cache-Control: must-revalidate'); 5 | header('Pragma: public'); 6 | header('Content-Description: File Transfer'); 7 | header('Content-Disposition: attachment; filename=report.pdf'); 8 | header('Content-Transfer-Encoding: binary'); 9 | header('Content-Length: ' . strlen($report)); 10 | header('Content-Type: application/pdf'); 11 | 12 | echo $report; -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/run_report_html.txt: -------------------------------------------------------------------------------- 1 | 2 | $report = $client->runReport('/reports/samples/AllAccounts', 'html'); // The URI string could also be found from a resourceDescriptor object using the getUriString() method 3 | 4 | echo $report; 5 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/run_report_ic.txt: -------------------------------------------------------------------------------- 1 | 2 | $controls = array( 3 | 'Country_multi_select' => array('USA', 'Mexico'), 4 | 'Cascading_state_multi_select' => array('CA', 'OR') 5 | ); 6 | 7 | 8 | $report = $client->runReport('/reports/samples/Cascading_multi_select_report', 'html', null, $controls); 9 | 10 | echo $report; -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/user_delete.txt: -------------------------------------------------------------------------------- 1 | 2 | $users_to_delete = array( 3 | 'user1', 4 | 'billy_user', 5 | 'fuser'); 6 | 7 | foreach ($users_to_delete as $user) { 8 | try { 9 | $userObject = $client->getUsers($user); 10 | $client->deleteUser($userObject[0]); 11 | } catch (Exception $e) { 12 | printf('Unable to delete user: %s', $e->getMessage()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/user_get.txt: -------------------------------------------------------------------------------- 1 | 2 | $californiaUser = $client->getUsers('CaliforniaUser'); 3 | 4 | if($californiaUser[0]->getUsername() == 'CaliforniaUser') { 5 | printf('Correct user found! Username is: %s', $californiaUser->getUsername()); 6 | } 7 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/user_post.txt: -------------------------------------------------------------------------------- 1 | 2 | $californiaUser = $client->getUsers('CaliforniaUser'); 3 | 4 | if (count($californiaUser) == 1) { 5 | 6 | $californiaUser->setEmailAddress('sanfrancisco-pasadena@example.com'); 7 | $californiaUser->setPassword('SUPERstrongPASSWORD###!!!'); 8 | 9 | try { 10 | $client->postUser($californiaUser); 11 | } catch (Exception $e) { 12 | printf('Attempt to modify the user failed with error: %s', $e->getMessage()); 13 | } 14 | } else { 15 | printf('More than one user found. Please be more specific with your query.'); 16 | } -------------------------------------------------------------------------------- /resources/jasper-rest/docs/code/user_put.txt: -------------------------------------------------------------------------------- 1 | 2 | $newUser = new Jasper\User( 3 | 'BI_User', // username 4 | 'superSTRENGTHpassw0rd', // password 5 | 'clever@email.com', // email 6 | 'Business Intelligence User', // description 7 | 'organization_1', // parent organization 8 | 'true' // enabled 9 | ); 10 | 11 | $role = new Jasper\Role('ROLE_USER', null, 'false'); 12 | $newUser->addRole($role); 13 | 14 | try { 15 | $client->putUsers($newUser); 16 | } catch (Exception $e) { 17 | printf('Could not add new user: %s', $e->getMessage()); 18 | } 19 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006, Ivan Sagalaev 2 | All rights reserved. 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are met: 5 | 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | * Neither the name of highlight.js nor the names of its contributors 12 | may be used to endorse or promote products derived from this software 13 | without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY 16 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/ascetic.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: white; color: black; 10 | } 11 | 12 | pre .string, 13 | pre .tag .value, 14 | pre .filter .argument, 15 | pre .addition, 16 | pre .change, 17 | pre .apache .tag, 18 | pre .apache .cbracket, 19 | pre .nginx .built_in, 20 | pre .tex .formula { 21 | color: #888; 22 | } 23 | 24 | pre .comment, 25 | pre .template_comment, 26 | pre .shebang, 27 | pre .doctype, 28 | pre .pi, 29 | pre .javadoc, 30 | pre .deletion, 31 | pre .apache .sqbracket { 32 | color: #CCC; 33 | } 34 | 35 | pre .keyword, 36 | pre .tag .title, 37 | pre .ini .title, 38 | pre .lisp .title, 39 | pre .http .title, 40 | pre .nginx .title, 41 | pre .css .tag, 42 | pre .winutils, 43 | pre .flow, 44 | pre .apache .tag, 45 | pre .tex .command, 46 | pre .request, 47 | pre .status { 48 | font-weight: bold; 49 | } 50 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/brown_paper.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Brown Paper style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background:#b7a68e url(./brown_papersq.png); 10 | } 11 | 12 | pre .keyword, 13 | pre .literal, 14 | pre .change, 15 | pre .winutils, 16 | pre .flow, 17 | pre .lisp .title, 18 | pre .nginx .title, 19 | pre .tex .special, 20 | pre .request, 21 | pre .status { 22 | color:#005599; 23 | font-weight:bold; 24 | } 25 | 26 | pre code, 27 | pre .ruby .subst, 28 | pre .tag .keyword { 29 | color: #363C69; 30 | } 31 | 32 | pre .string, 33 | pre .title, 34 | pre .haskell .type, 35 | pre .tag .value, 36 | pre .css .rules .value, 37 | pre .preprocessor, 38 | pre .ruby .symbol, 39 | pre .ruby .symbol .string, 40 | pre .ruby .symbol .keyword, 41 | pre .ruby .symbol .keymethods, 42 | pre .ruby .instancevar, 43 | pre .ruby .class .parent, 44 | pre .built_in, 45 | pre .sql .aggregate, 46 | pre .django .template_tag, 47 | pre .django .variable, 48 | pre .smalltalk .class, 49 | pre .javadoc, 50 | pre .ruby .string, 51 | pre .django .filter .argument, 52 | pre .smalltalk .localvars, 53 | pre .smalltalk .array, 54 | pre .attr_selector, 55 | pre .pseudo, 56 | pre .addition, 57 | pre .stream, 58 | pre .envvar, 59 | pre .apache .tag, 60 | pre .apache .cbracket, 61 | pre .tex .number { 62 | color: #2C009F; 63 | } 64 | 65 | pre .comment, 66 | pre .java .annotation, 67 | pre .python .decorator, 68 | pre .template_comment, 69 | pre .pi, 70 | pre .doctype, 71 | pre .deletion, 72 | pre .shebang, 73 | pre .apache .sqbracket, 74 | pre .nginx .built_in, 75 | pre .tex .formula { 76 | color: #802022; 77 | } 78 | 79 | pre .keyword, 80 | pre .literal, 81 | pre .css .id, 82 | pre .phpdoc, 83 | pre .title, 84 | pre .haskell .type, 85 | pre .vbscript .built_in, 86 | pre .sql .aggregate, 87 | pre .rsl .built_in, 88 | pre .smalltalk .class, 89 | pre .diff .header, 90 | pre .chunk, 91 | pre .winutils, 92 | pre .bash .variable, 93 | pre .apache .tag, 94 | pre .tex .command { 95 | font-weight: bold; 96 | } 97 | 98 | pre .coffeescript .javascript, 99 | pre .xml .css, 100 | pre .xml .javascript, 101 | pre .xml .vbscript, 102 | pre .tex .formula { 103 | opacity: 0.8; 104 | } 105 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/brown_papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/resources/jasper-rest/docs/highlight/styles/brown_papersq.png -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Dark style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #444; 10 | } 11 | 12 | pre .keyword, 13 | pre .literal, 14 | pre .change, 15 | pre .winutils, 16 | pre .flow, 17 | pre .lisp .title, 18 | pre .nginx .title, 19 | pre .tex .special { 20 | color: white; 21 | } 22 | 23 | pre code, 24 | pre .ruby .subst { 25 | color: #DDD; 26 | } 27 | 28 | pre .string, 29 | pre .title, 30 | pre .haskell .type, 31 | pre .ini .title, 32 | pre .tag .value, 33 | pre .css .rules .value, 34 | pre .preprocessor, 35 | pre .ruby .symbol, 36 | pre .ruby .symbol .string, 37 | pre .ruby .symbol .keyword, 38 | pre .ruby .symbol .keymethods, 39 | pre .ruby .instancevar, 40 | pre .ruby .class .parent, 41 | pre .built_in, 42 | pre .sql .aggregate, 43 | pre .django .template_tag, 44 | pre .django .variable, 45 | pre .smalltalk .class, 46 | pre .javadoc, 47 | pre .ruby .string, 48 | pre .django .filter .argument, 49 | pre .smalltalk .localvars, 50 | pre .smalltalk .array, 51 | pre .attr_selector, 52 | pre .pseudo, 53 | pre .addition, 54 | pre .stream, 55 | pre .envvar, 56 | pre .apache .tag, 57 | pre .apache .cbracket, 58 | pre .tex .command, 59 | pre .input_number { 60 | color: #D88; 61 | } 62 | 63 | pre .comment, 64 | pre .java .annotation, 65 | pre .python .decorator, 66 | pre .template_comment, 67 | pre .pi, 68 | pre .doctype, 69 | pre .deletion, 70 | pre .shebang, 71 | pre .apache .sqbracket, 72 | pre .tex .formula { 73 | color: #777; 74 | } 75 | 76 | pre .keyword, 77 | pre .literal, 78 | pre .title, 79 | pre .css .id, 80 | pre .phpdoc, 81 | pre .haskell .type, 82 | pre .vbscript .built_in, 83 | pre .sql .aggregate, 84 | pre .rsl .built_in, 85 | pre .smalltalk .class, 86 | pre .diff .header, 87 | pre .chunk, 88 | pre .winutils, 89 | pre .bash .variable, 90 | pre .apache .tag, 91 | pre .tex .special, 92 | pre .request, 93 | pre .status { 94 | font-weight: bold; 95 | } 96 | 97 | pre .coffeescript .javascript, 98 | pre .xml .css, 99 | pre .xml .javascript, 100 | pre .xml .vbscript, 101 | pre .tex .formula { 102 | opacity: 0.5; 103 | } 104 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/far.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | FAR Style (c) MajestiC 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #000080; 10 | } 11 | 12 | pre code, 13 | .ruby .subst { 14 | color: #0FF; 15 | } 16 | 17 | pre .string, 18 | pre .ruby .string, 19 | pre .haskell .type, 20 | pre .tag .value, 21 | pre .css .rules .value, 22 | pre .css .rules .value .number, 23 | pre .preprocessor, 24 | pre .ruby .symbol, 25 | pre .ruby .symbol .string, 26 | pre .ruby .symbol .keyword, 27 | pre .ruby .symbol .keymethods, 28 | pre .built_in, 29 | pre .sql .aggregate, 30 | pre .django .template_tag, 31 | pre .django .variable, 32 | pre .smalltalk .class, 33 | pre .addition, 34 | pre .apache .tag, 35 | pre .apache .cbracket, 36 | pre .tex .command { 37 | color: #FF0; 38 | } 39 | 40 | pre .keyword, 41 | pre .css .id, 42 | pre .title, 43 | pre .haskell .type, 44 | pre .vbscript .built_in, 45 | pre .sql .aggregate, 46 | pre .rsl .built_in, 47 | pre .smalltalk .class, 48 | pre .xml .tag .title, 49 | pre .winutils, 50 | pre .flow, 51 | pre .change, 52 | pre .envvar, 53 | pre .bash .variable, 54 | pre .tex .special { 55 | color: #FFF; 56 | } 57 | 58 | pre .comment, 59 | pre .phpdoc, 60 | pre .javadoc, 61 | pre .java .annotation, 62 | pre .template_comment, 63 | pre .deletion, 64 | pre .apache .sqbracket, 65 | pre .tex .formula { 66 | color: #888; 67 | } 68 | 69 | pre .number, 70 | pre .date, 71 | pre .regexp, 72 | pre .literal, 73 | pre .smalltalk .symbol, 74 | pre .smalltalk .char { 75 | color: #0F0; 76 | } 77 | 78 | pre .python .decorator, 79 | pre .django .filter .argument, 80 | pre .smalltalk .localvars, 81 | pre .smalltalk .array, 82 | pre .attr_selector, 83 | pre .pseudo, 84 | pre .xml .pi, 85 | pre .diff .header, 86 | pre .chunk, 87 | pre .shebang, 88 | pre .nginx .built_in, 89 | pre .input_number { 90 | color: #008080; 91 | } 92 | 93 | pre .keyword, 94 | pre .css .id, 95 | pre .title, 96 | pre .haskell .type, 97 | pre .vbscript .built_in, 98 | pre .sql .aggregate, 99 | pre .rsl .built_in, 100 | pre .smalltalk .class, 101 | pre .winutils, 102 | pre .flow, 103 | pre .apache .tag, 104 | pre .nginx .built_in, 105 | pre .tex .command, 106 | pre .tex .special, 107 | pre .request, 108 | pre .status { 109 | font-weight: bold; 110 | } 111 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/github.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | github.com style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | color: #000; 10 | background: #f8f8ff 11 | } 12 | 13 | pre .comment, 14 | pre .template_comment, 15 | pre .diff .header, 16 | pre .javadoc { 17 | color: #998; 18 | font-style: italic 19 | } 20 | 21 | pre .keyword, 22 | pre .css .rule .keyword, 23 | pre .winutils, 24 | pre .javascript .title, 25 | pre .lisp .title, 26 | pre .nginx .title, 27 | pre .subst, 28 | pre .request, 29 | pre .status { 30 | color: #000; 31 | font-weight: bold 32 | } 33 | 34 | pre .number, 35 | pre .hexcolor { 36 | color: #40a070 37 | } 38 | 39 | pre .string, 40 | pre .tag .value, 41 | pre .phpdoc, 42 | pre .tex .formula { 43 | color: #d14 44 | } 45 | 46 | pre .title, 47 | pre .id { 48 | color: #900; 49 | font-weight: bold 50 | } 51 | 52 | pre .javascript .title, 53 | pre .lisp .title, 54 | pre .subst { 55 | font-weight: normal 56 | } 57 | 58 | pre .class .title, 59 | pre .haskell .type, 60 | pre .vhdl .literal, 61 | pre .tex .command { 62 | color: #458; 63 | font-weight: bold 64 | } 65 | 66 | pre .tag, 67 | pre .tag .title, 68 | pre .rules .property, 69 | pre .django .tag .keyword { 70 | color: #000080; 71 | font-weight: normal 72 | } 73 | 74 | pre .attribute, 75 | pre .variable, 76 | pre .instancevar, 77 | pre .lisp .body { 78 | color: #008080 79 | } 80 | 81 | pre .regexp { 82 | color: #009926 83 | } 84 | 85 | pre .class { 86 | color: #458; 87 | font-weight: bold 88 | } 89 | 90 | pre .symbol, 91 | pre .ruby .symbol .string, 92 | pre .ruby .symbol .keyword, 93 | pre .ruby .symbol .keymethods, 94 | pre .lisp .keyword, 95 | pre .tex .special, 96 | pre .input_number { 97 | color: #990073 98 | } 99 | 100 | pre .builtin, 101 | pre .built_in, 102 | pre .lisp .title { 103 | color: #0086b3 104 | } 105 | 106 | pre .preprocessor, 107 | pre .pi, 108 | pre .doctype, 109 | pre .shebang, 110 | pre .cdata { 111 | color: #999; 112 | font-weight: bold 113 | } 114 | 115 | pre .deletion { 116 | background: #fdd 117 | } 118 | 119 | pre .addition { 120 | background: #dfd 121 | } 122 | 123 | pre .diff .change { 124 | background: #0086b3 125 | } 126 | 127 | pre .chunk { 128 | color: #aaa 129 | } 130 | 131 | pre .tex .formula { 132 | opacity: 0.5; 133 | } 134 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/idea.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Intellij Idea-like styling (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | color: #000; 10 | background: #fff; 11 | } 12 | 13 | pre .subst, 14 | pre .title { 15 | font-weight: normal; 16 | color: #000; 17 | } 18 | 19 | pre .comment, 20 | pre .template_comment, 21 | pre .javadoc, 22 | pre .diff .header { 23 | color: #808080; 24 | font-style: italic; 25 | } 26 | 27 | pre .annotation, 28 | pre .decorator, 29 | pre .preprocessor, 30 | pre .doctype, 31 | pre .pi, 32 | pre .chunk, 33 | pre .shebang, 34 | pre .apache .cbracket, 35 | pre .input_number, 36 | pre .http .title { 37 | color: #808000; 38 | } 39 | 40 | pre .tag, 41 | pre .pi { 42 | background: #efefef; 43 | } 44 | 45 | pre .tag .title, 46 | pre .id, 47 | pre .attr_selector, 48 | pre .pseudo, 49 | pre .literal, 50 | pre .keyword, 51 | pre .hexcolor, 52 | pre .css .function, 53 | pre .ini .title, 54 | pre .css .class, 55 | pre .list .title, 56 | pre .nginx .title, 57 | pre .tex .command, 58 | pre .request, 59 | pre .status { 60 | font-weight: bold; 61 | color: #000080; 62 | } 63 | 64 | pre .attribute, 65 | pre .rules .keyword, 66 | pre .number, 67 | pre .date, 68 | pre .regexp, 69 | pre .tex .special { 70 | font-weight: bold; 71 | color: #0000ff; 72 | } 73 | 74 | pre .number, 75 | pre .regexp { 76 | font-weight: normal; 77 | } 78 | 79 | pre .string, 80 | pre .value, 81 | pre .filter .argument, 82 | pre .css .function .params, 83 | pre .apache .tag { 84 | color: #008000; 85 | font-weight: bold; 86 | } 87 | 88 | pre .symbol, 89 | pre .ruby .symbol .string, 90 | pre .ruby .symbol .keyword, 91 | pre .ruby .symbol .keymethods, 92 | pre .char, 93 | pre .tex .formula { 94 | color: #000; 95 | background: #d0eded; 96 | font-style: italic; 97 | } 98 | 99 | pre .phpdoc, 100 | pre .yardoctag, 101 | pre .javadoctag { 102 | text-decoration: underline; 103 | } 104 | 105 | pre .variable, 106 | pre .envvar, 107 | pre .apache .sqbracket, 108 | pre .nginx .built_in { 109 | color: #660e7a; 110 | } 111 | 112 | pre .addition { 113 | background: #baeeba; 114 | } 115 | 116 | pre .deletion { 117 | background: #ffc8bd; 118 | } 119 | 120 | pre .diff .change { 121 | background: #bccff9; 122 | } 123 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/ir_black.css: -------------------------------------------------------------------------------- 1 | /* 2 | IR_Black style (c) Vasily Mikhailitchenko 3 | */ 4 | 5 | pre code { 6 | display: block; padding: 0.5em; 7 | background: #000; color: #f8f8f8; 8 | } 9 | 10 | pre .shebang, 11 | pre .comment, 12 | pre .template_comment, 13 | pre .javadoc { 14 | color: #7c7c7c; 15 | } 16 | 17 | pre .keyword, 18 | pre .tag, 19 | pre .tex .command, 20 | pre .request, 21 | pre .status { 22 | color: #96CBFE; 23 | } 24 | 25 | pre .sub .keyword, 26 | pre .method, 27 | pre .list .title, 28 | pre .nginx .title { 29 | color: #FFFFB6; 30 | } 31 | 32 | pre .string, 33 | pre .tag .value, 34 | pre .cdata, 35 | pre .filter .argument, 36 | pre .attr_selector, 37 | pre .apache .cbracket, 38 | pre .date { 39 | color: #A8FF60; 40 | } 41 | 42 | pre .subst { 43 | color: #DAEFA3; 44 | } 45 | 46 | pre .regexp { 47 | color: #E9C062; 48 | } 49 | 50 | pre .title, 51 | pre .sub .identifier, 52 | pre .pi, 53 | pre .decorator, 54 | pre .tex .special, 55 | pre .haskell .type, 56 | pre .constant, 57 | pre .smalltalk .class, 58 | pre .javadoctag, 59 | pre .yardoctag, 60 | pre .phpdoc, 61 | pre .nginx .built_in { 62 | color: #FFFFB6; 63 | } 64 | 65 | pre .symbol, 66 | pre .ruby .symbol .string, 67 | pre .ruby .symbol .keyword, 68 | pre .ruby .symbol .keymethods, 69 | pre .number, 70 | pre .variable, 71 | pre .vbscript, 72 | pre .literal { 73 | color: #C6C5FE; 74 | } 75 | 76 | pre .css .tag { 77 | color: #96CBFE; 78 | } 79 | 80 | pre .css .rules .property, 81 | pre .css .id { 82 | color: #FFFFB6; 83 | } 84 | 85 | pre .css .class { 86 | color: #FFF; 87 | } 88 | 89 | pre .hexcolor { 90 | color: #C6C5FE; 91 | } 92 | 93 | pre .number { 94 | color:#FF73FD; 95 | } 96 | 97 | pre .tex .formula { 98 | opacity: 0.7; 99 | } 100 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/magula.css: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Magula style for highligh.js 3 | Author: Ruslan Keba 4 | Website: http://rukeba.com/ 5 | Version: 1.0 6 | Date: 2009-01-03 7 | Music: Aphex Twin / Xtal 8 | */ 9 | 10 | pre code { 11 | display: block; padding: 0.5em; 12 | background-color: #f4f4f4; 13 | } 14 | 15 | pre code, 16 | pre .ruby .subst, 17 | pre .lisp .title { 18 | color: black; 19 | } 20 | 21 | pre .string, 22 | pre .title, 23 | pre .parent, 24 | pre .tag .value, 25 | pre .rules .value, 26 | pre .rules .value .number, 27 | pre .preprocessor, 28 | pre .ruby .symbol, 29 | pre .ruby .symbol .string, 30 | pre .ruby .symbol .keyword, 31 | pre .ruby .symbol .keymethods, 32 | pre .instancevar, 33 | pre .aggregate, 34 | pre .template_tag, 35 | pre .django .variable, 36 | pre .smalltalk .class, 37 | pre .addition, 38 | pre .flow, 39 | pre .stream, 40 | pre .bash .variable, 41 | pre .apache .cbracket { 42 | color: #050; 43 | } 44 | 45 | pre .comment, 46 | pre .annotation, 47 | pre .template_comment, 48 | pre .diff .header, 49 | pre .chunk { 50 | color: #777; 51 | } 52 | 53 | pre .number, 54 | pre .date, 55 | pre .regexp, 56 | pre .literal, 57 | pre .smalltalk .symbol, 58 | pre .smalltalk .char, 59 | pre .change, 60 | pre .tex .special { 61 | color: #800; 62 | } 63 | 64 | pre .label, 65 | pre .javadoc, 66 | pre .ruby .string, 67 | pre .decorator, 68 | pre .filter .argument, 69 | pre .localvars, 70 | pre .array, 71 | pre .attr_selector, 72 | pre .pseudo, 73 | pre .pi, 74 | pre .doctype, 75 | pre .deletion, 76 | pre .envvar, 77 | pre .shebang, 78 | pre .apache .sqbracket, 79 | pre .nginx .built_in, 80 | pre .tex .formula, 81 | pre .input_number { 82 | color: #00e; 83 | } 84 | 85 | pre .keyword, 86 | pre .id, 87 | pre .phpdoc, 88 | pre .title, 89 | pre .built_in, 90 | pre .aggregate, 91 | pre .smalltalk .class, 92 | pre .winutils, 93 | pre .bash .variable, 94 | pre .apache .tag, 95 | pre .xml .tag, 96 | pre .tex .command, 97 | pre .request, 98 | pre .status { 99 | font-weight: bold; 100 | color: navy; 101 | } 102 | 103 | pre .nginx .built_in { 104 | font-weight: normal; 105 | } 106 | 107 | pre .coffeescript .javascript, 108 | pre .xml .css, 109 | pre .xml .javascript, 110 | pre .xml .vbscript, 111 | pre .tex .formula { 112 | opacity: 0.5; 113 | } 114 | 115 | /* --- */ 116 | pre .apache .tag { 117 | font-weight: bold; 118 | color: blue; 119 | } 120 | 121 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/monokai.css: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | pre code { 6 | display: block; padding: 0.5em; 7 | background: #272822; 8 | } 9 | 10 | pre .params .identifier .keymethods { 11 | color: #FD971F; 12 | } 13 | 14 | pre .tag, 15 | pre .tag .title, 16 | pre .keyword, 17 | pre .literal, 18 | pre .change, 19 | pre .winutils, 20 | pre .flow, 21 | pre .lisp .title, 22 | pre .nginx .title, 23 | pre .tex .special { 24 | color: #F92672; 25 | } 26 | 27 | pre code { 28 | color: #DDD; 29 | } 30 | 31 | pre code .constant { 32 | color: #66D9EF; 33 | } 34 | 35 | pre .class .title { 36 | color: white; 37 | } 38 | 39 | pre .attribute, 40 | pre .symbol, 41 | pre .value, 42 | pre .regexp { 43 | color: #BF79DB; 44 | } 45 | 46 | pre .tag .value, 47 | pre .string, 48 | pre .ruby .subst, 49 | pre .title, 50 | pre .haskell .type, 51 | pre .preprocessor, 52 | pre .ruby .instancevar, 53 | pre .ruby .class .parent, 54 | pre .built_in, 55 | pre .sql .aggregate, 56 | pre .django .template_tag, 57 | pre .django .variable, 58 | pre .smalltalk .class, 59 | pre .javadoc, 60 | pre .ruby .string, 61 | pre .django .filter .argument, 62 | pre .smalltalk .localvars, 63 | pre .smalltalk .array, 64 | pre .attr_selector, 65 | pre .pseudo, 66 | pre .addition, 67 | pre .stream, 68 | pre .envvar, 69 | pre .apache .tag, 70 | pre .apache .cbracket, 71 | pre .tex .command, 72 | pre .input_number { 73 | color: #A6E22E; 74 | } 75 | 76 | pre .comment, 77 | pre .java .annotation, 78 | pre .python .decorator, 79 | pre .template_comment, 80 | pre .pi, 81 | pre .doctype, 82 | pre .deletion, 83 | pre .shebang, 84 | pre .apache .sqbracket, 85 | pre .tex .formula { 86 | color: #75715E; 87 | } 88 | 89 | pre .keyword, 90 | pre .literal, 91 | pre .css .id, 92 | pre .phpdoc, 93 | pre .title, 94 | pre .haskell .type, 95 | pre .vbscript .built_in, 96 | pre .sql .aggregate, 97 | pre .rsl .built_in, 98 | pre .smalltalk .class, 99 | pre .diff .header, 100 | pre .chunk, 101 | pre .winutils, 102 | pre .bash .variable, 103 | pre .apache .tag, 104 | pre .tex .special, 105 | pre .request, 106 | pre .status { 107 | font-weight: bold; 108 | } 109 | 110 | pre .coffeescript .javascript, 111 | pre .xml .css, 112 | pre .xml .javascript, 113 | pre .xml .vbscript, 114 | pre .tex .formula { 115 | opacity: 0.5; 116 | } 117 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/pojoaque.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Pojoaque Style by Jason Tate 4 | http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html 5 | Based on Solarized Style from http://ethanschoonover.com/solarized 6 | 7 | */ 8 | 9 | pre code { 10 | display: block; padding: 0.5em; 11 | color: #DCCF8F; 12 | background: url(./pojoaque.jpg) repeat scroll left top #181914; 13 | } 14 | 15 | pre .comment, 16 | pre .template_comment, 17 | pre .diff .header, 18 | pre .doctype, 19 | pre .lisp .string, 20 | pre .javadoc { 21 | color: #586e75; 22 | font-style: italic; 23 | } 24 | 25 | pre .keyword, 26 | pre .css .rule .keyword, 27 | pre .winutils, 28 | pre .javascript .title, 29 | pre .method, 30 | pre .addition, 31 | pre .css .tag, 32 | pre .lisp .title, 33 | pre .nginx .title { 34 | color: #B64926; 35 | } 36 | 37 | pre .number, 38 | pre .command, 39 | pre .string, 40 | pre .tag .value, 41 | pre .phpdoc, 42 | pre .tex .formula, 43 | pre .regexp, 44 | pre .hexcolor { 45 | color: #468966; 46 | } 47 | 48 | pre .title, 49 | pre .localvars, 50 | pre .function .title, 51 | pre .chunk, 52 | pre .decorator, 53 | pre .builtin, 54 | pre .built_in, 55 | pre .lisp .title, 56 | pre .identifier, 57 | pre .title .keymethods, 58 | pre .id { 59 | color: #FFB03B; 60 | } 61 | 62 | pre .attribute, 63 | pre .variable, 64 | pre .instancevar, 65 | pre .lisp .body, 66 | pre .smalltalk .number, 67 | pre .constant, 68 | pre .class .title, 69 | pre .parent, 70 | pre .haskell .type { 71 | color: #b58900; 72 | } 73 | 74 | pre .css .attribute { 75 | color: #b89859; 76 | } 77 | 78 | pre .css .number,pre .css .hexcolor{ 79 | color: #DCCF8F; 80 | } 81 | 82 | pre .css .class { 83 | color: #d3a60c; 84 | } 85 | 86 | pre .preprocessor, 87 | pre .pi, 88 | pre .shebang, 89 | pre .symbol, 90 | pre .diff .change, 91 | pre .special, 92 | pre .keymethods, 93 | pre .attr_selector, 94 | pre .important, 95 | pre .subst, 96 | pre .cdata { 97 | color: #cb4b16; 98 | } 99 | 100 | pre .deletion { 101 | color: #dc322f; 102 | } 103 | 104 | pre .tex .formula { 105 | background: #073642; 106 | } 107 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/resources/jasper-rest/docs/highlight/styles/pojoaque.jpg -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/school_book.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | School Book style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 15px 0.5em 0.5em 30px; 9 | font-size: 11px !important; 10 | line-height:16px !important; 11 | } 12 | 13 | pre{ 14 | background:#f6f6ae url(./school_book.png); 15 | border-top: solid 2px #d2e8b9; 16 | border-bottom: solid 1px #d2e8b9; 17 | } 18 | 19 | pre .keyword, 20 | pre .literal, 21 | pre .change, 22 | pre .winutils, 23 | pre .flow, 24 | pre .lisp .title, 25 | pre .nginx .title, 26 | pre .tex .special { 27 | color:#005599; 28 | font-weight:bold; 29 | } 30 | 31 | pre code, 32 | pre .ruby .subst, 33 | pre .tag .keyword { 34 | color: #3E5915; 35 | } 36 | 37 | pre .string, 38 | pre .title, 39 | pre .haskell .type, 40 | pre .tag .value, 41 | pre .css .rules .value, 42 | pre .preprocessor, 43 | pre .ruby .symbol, 44 | pre .ruby .symbol .string, 45 | pre .ruby .symbol .keyword, 46 | pre .ruby .symbol .keymethods, 47 | pre .ruby .instancevar, 48 | pre .ruby .class .parent, 49 | pre .built_in, 50 | pre .sql .aggregate, 51 | pre .django .template_tag, 52 | pre .django .variable, 53 | pre .smalltalk .class, 54 | pre .javadoc, 55 | pre .ruby .string, 56 | pre .django .filter .argument, 57 | pre .smalltalk .localvars, 58 | pre .smalltalk .array, 59 | pre .attr_selector, 60 | pre .pseudo, 61 | pre .addition, 62 | pre .stream, 63 | pre .envvar, 64 | pre .apache .tag, 65 | pre .apache .cbracket, 66 | pre .nginx .built_in, 67 | pre .tex .command { 68 | color: #2C009F; 69 | } 70 | 71 | pre .comment, 72 | pre .java .annotation, 73 | pre .python .decorator, 74 | pre .template_comment, 75 | pre .pi, 76 | pre .doctype, 77 | pre .deletion, 78 | pre .shebang, 79 | pre .apache .sqbracket { 80 | color: #E60415; 81 | } 82 | 83 | pre .keyword, 84 | pre .literal, 85 | pre .css .id, 86 | pre .phpdoc, 87 | pre .title, 88 | pre .haskell .type, 89 | pre .vbscript .built_in, 90 | pre .sql .aggregate, 91 | pre .rsl .built_in, 92 | pre .smalltalk .class, 93 | pre .xml .tag .title, 94 | pre .diff .header, 95 | pre .chunk, 96 | pre .winutils, 97 | pre .bash .variable, 98 | pre .apache .tag, 99 | pre .tex .command, 100 | pre .request, 101 | pre .status { 102 | font-weight: bold; 103 | } 104 | 105 | pre .coffeescript .javascript, 106 | pre .xml .css, 107 | pre .xml .javascript, 108 | pre .xml .vbscript, 109 | pre .tex .formula { 110 | opacity: 0.5; 111 | } 112 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/school_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marianol/JasperServer-for-PHP/25a240206a7a9bbafb3b9ec696e1504eca6abd61/resources/jasper-rest/docs/highlight/styles/school_book.png -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/solarized_dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #002b36; color: #839496; 10 | } 11 | 12 | pre .comment, 13 | pre .template_comment, 14 | pre .diff .header, 15 | pre .doctype, 16 | pre .pi, 17 | pre .lisp .string, 18 | pre .javadoc { 19 | color: #586e75; 20 | font-style: italic; 21 | } 22 | 23 | pre .keyword, 24 | pre .winutils, 25 | pre .method, 26 | pre .addition, 27 | pre .css .tag, 28 | pre .request, 29 | pre .status, 30 | pre .nginx .title { 31 | color: #859900; 32 | } 33 | 34 | pre .number, 35 | pre .command, 36 | pre .string, 37 | pre .tag .value, 38 | pre .phpdoc, 39 | pre .tex .formula, 40 | pre .regexp, 41 | pre .hexcolor { 42 | color: #2aa198; 43 | } 44 | 45 | pre .title, 46 | pre .localvars, 47 | pre .chunk, 48 | pre .decorator, 49 | pre .builtin, 50 | pre .built_in, 51 | pre .identifier, 52 | pre .title .keymethods, 53 | pre .vhdl .literal, 54 | pre .id { 55 | color: #268bd2; 56 | } 57 | 58 | pre .attribute, 59 | pre .variable, 60 | pre .instancevar, 61 | pre .lisp .body, 62 | pre .smalltalk .number, 63 | pre .constant, 64 | pre .class .title, 65 | pre .parent, 66 | pre .haskell .type { 67 | color: #b58900; 68 | } 69 | 70 | pre .preprocessor, 71 | pre .preprocessor .keyword, 72 | pre .shebang, 73 | pre .symbol, 74 | pre .diff .change, 75 | pre .special, 76 | pre .keymethods, 77 | pre .attr_selector, 78 | pre .important, 79 | pre .subst, 80 | pre .cdata { 81 | color: #cb4b16; 82 | } 83 | 84 | pre .deletion { 85 | color: #dc322f; 86 | } 87 | 88 | pre .tex .formula { 89 | background: #073642; 90 | } 91 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/solarized_light.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #fdf6e3; color: #657b83; 10 | } 11 | 12 | pre .comment, 13 | pre .template_comment, 14 | pre .diff .header, 15 | pre .doctype, 16 | pre .pi, 17 | pre .lisp .string, 18 | pre .javadoc { 19 | color: #93a1a1; 20 | font-style: italic; 21 | } 22 | 23 | pre .keyword, 24 | pre .winutils, 25 | pre .method, 26 | pre .addition, 27 | pre .css .tag, 28 | pre .request, 29 | pre .status, 30 | pre .nginx .title { 31 | color: #859900; 32 | } 33 | 34 | pre .number, 35 | pre .command, 36 | pre .string, 37 | pre .tag .value, 38 | pre .phpdoc, 39 | pre .tex .formula, 40 | pre .regexp, 41 | pre .hexcolor { 42 | color: #2aa198; 43 | } 44 | 45 | pre .title, 46 | pre .localvars, 47 | pre .chunk, 48 | pre .decorator, 49 | pre .builtin, 50 | pre .built_in, 51 | pre .identifier, 52 | pre .title .keymethods, 53 | pre .vhdl .literal, 54 | pre .id { 55 | color: #268bd2; 56 | } 57 | 58 | pre .attribute, 59 | pre .variable, 60 | pre .instancevar, 61 | pre .lisp .body, 62 | pre .smalltalk .number, 63 | pre .constant, 64 | pre .class .title, 65 | pre .parent, 66 | pre .haskell .type { 67 | color: #b58900; 68 | } 69 | 70 | pre .preprocessor, 71 | pre .preprocessor .keyword, 72 | pre .shebang, 73 | pre .symbol, 74 | pre .diff .change, 75 | pre .special, 76 | pre .keymethods, 77 | pre .attr_selector, 78 | pre .important, 79 | pre .subst, 80 | pre .cdata { 81 | color: #cb4b16; 82 | } 83 | 84 | pre .deletion { 85 | color: #dc322f; 86 | } 87 | 88 | pre .tex .formula { 89 | background: #eee8d5; 90 | } 91 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/vs.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Visual Studio-like style based on original C# coloring by Jason Diamond 4 | 5 | */ 6 | pre code { 7 | display: block; padding: 0.5em; 8 | } 9 | 10 | pre .comment, 11 | pre .annotation, 12 | pre .template_comment, 13 | pre .diff .header, 14 | pre .chunk, 15 | pre .apache .cbracket { 16 | color: rgb(0, 128, 0); 17 | } 18 | 19 | pre .keyword, 20 | pre .id, 21 | pre .built_in, 22 | pre .smalltalk .class, 23 | pre .winutils, 24 | pre .bash .variable, 25 | pre .tex .command, 26 | pre .request, 27 | pre .status, 28 | pre .nginx .title { 29 | color: rgb(0, 0, 255); 30 | } 31 | 32 | pre .string, 33 | pre .title, 34 | pre .parent, 35 | pre .tag .value, 36 | pre .rules .value, 37 | pre .rules .value .number, 38 | pre .ruby .symbol, 39 | pre .ruby .symbol .string, 40 | pre .ruby .symbol .keyword, 41 | pre .ruby .symbol .keymethods, 42 | pre .instancevar, 43 | pre .aggregate, 44 | pre .template_tag, 45 | pre .django .variable, 46 | pre .addition, 47 | pre .flow, 48 | pre .stream, 49 | pre .apache .tag, 50 | pre .date, 51 | pre .tex .formula { 52 | color: rgb(163, 21, 21); 53 | } 54 | 55 | pre .ruby .string, 56 | pre .decorator, 57 | pre .filter .argument, 58 | pre .localvars, 59 | pre .array, 60 | pre .attr_selector, 61 | pre .pseudo, 62 | pre .pi, 63 | pre .doctype, 64 | pre .deletion, 65 | pre .envvar, 66 | pre .shebang, 67 | pre .preprocessor, 68 | pre .userType, 69 | pre .apache .sqbracket, 70 | pre .nginx .built_in, 71 | pre .tex .special, 72 | pre .input_number { 73 | color: rgb(43, 145, 175); 74 | } 75 | 76 | pre .phpdoc, 77 | pre .javadoc, 78 | pre .xmlDocTag { 79 | color: rgb(128, 128, 128); 80 | } 81 | 82 | pre .vhdl .typename { font-weight: bold; } 83 | pre .vhdl .string { color: #666666; } 84 | pre .vhdl .literal { color: rgb(163, 21, 21); } 85 | pre .vhdl .attribute { color: #00B0E8; } 86 | -------------------------------------------------------------------------------- /resources/jasper-rest/docs/highlight/styles/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | pre code { 9 | display: block; padding: 0.5em; 10 | background: #3F3F3F; 11 | color: #DCDCDC; 12 | } 13 | 14 | pre .keyword, 15 | pre .tag, 16 | pre .css .class, 17 | pre .css .id, 18 | pre .lisp .title, 19 | pre .nginx .title, 20 | pre .request, 21 | pre .status { 22 | color: #E3CEAB; 23 | } 24 | 25 | pre .django .template_tag, 26 | pre .django .variable, 27 | pre .django .filter .argument { 28 | color: #DCDCDC; 29 | } 30 | 31 | pre .number, 32 | pre .date { 33 | color: #8CD0D3; 34 | } 35 | 36 | pre .dos .envvar, 37 | pre .dos .stream, 38 | pre .variable, 39 | pre .apache .sqbracket { 40 | color: #EFDCBC; 41 | } 42 | 43 | pre .dos .flow, 44 | pre .diff .change, 45 | pre .python .exception, 46 | pre .python .built_in, 47 | pre .literal, 48 | pre .tex .special { 49 | color: #EFEFAF; 50 | } 51 | 52 | pre .diff .chunk, 53 | pre .ruby .subst { 54 | color: #8F8F8F; 55 | } 56 | 57 | pre .dos .keyword, 58 | pre .python .decorator, 59 | pre .title, 60 | pre .haskell .type, 61 | pre .diff .header, 62 | pre .ruby .class .parent, 63 | pre .apache .tag, 64 | pre .nginx .built_in, 65 | pre .tex .command, 66 | pre .input_number { 67 | color: #efef8f; 68 | } 69 | 70 | pre .dos .winutils, 71 | pre .ruby .symbol, 72 | pre .ruby .symbol .string, 73 | pre .ruby .symbol .keyword, 74 | pre .ruby .symbol .keymethods, 75 | pre .ruby .string, 76 | pre .ruby .instancevar { 77 | color: #DCA3A3; 78 | } 79 | 80 | pre .diff .deletion, 81 | pre .string, 82 | pre .tag .value, 83 | pre .preprocessor, 84 | pre .built_in, 85 | pre .sql .aggregate, 86 | pre .javadoc, 87 | pre .smalltalk .class, 88 | pre .smalltalk .localvars, 89 | pre .smalltalk .array, 90 | pre .css .rules .value, 91 | pre .attr_selector, 92 | pre .pseudo, 93 | pre .apache .cbracket, 94 | pre .tex .formula { 95 | color: #CC9393; 96 | } 97 | 98 | pre .shebang, 99 | pre .diff .addition, 100 | pre .comment, 101 | pre .java .annotation, 102 | pre .template_comment, 103 | pre .pi, 104 | pre .doctype { 105 | color: #7F9F7F; 106 | } 107 | 108 | pre .coffeescript .javascript, 109 | pre .xml .css, 110 | pre .xml .javascript, 111 | pre .xml .vbscript, 112 | pre .tex .formula { 113 | opacity: 0.5; 114 | } 115 | 116 | -------------------------------------------------------------------------------- /resources/jasper-rest/getuser.php: -------------------------------------------------------------------------------- 1 | getUsers(); 5 | echo json_encode($users); 6 | ?> -------------------------------------------------------------------------------- /resources/jasper-rest/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/jasper-rest/js/main.js: -------------------------------------------------------------------------------- 1 | /* ========================================================================== 2 | 3 | Copyright (C) 2005 - 2012 Jaspersoft Corporation. All rights reserved. 4 | http://www.jaspersoft.com. 5 | 6 | Unless you have purchased a commercial license agreement from Jaspersoft, 7 | the following license terms apply: 8 | 9 | This program is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU Affero General Public License as 11 | published by the Free Software Foundation, either version 3 of the 12 | License, or (at your option) any later version. 13 | 14 | This program is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU Affero General Public License for more details. 18 | 19 | You should have received a copy of the GNU Affero General Public License 20 | along with this program. If not, see . 21 | 22 | =========================================================================== */ 23 | 24 | $(document).ready(function(){ 25 | $('#userForm').hide(); 26 | 27 | }); 28 | 29 | $('#userButton').live('click', function(){ 30 | $.getJSON('getuser.php', function(data){ 31 | $.each(data, function(i, user){ 32 | $('#userlist').append('
  • '+user.username+'|'+user.tenantId+'
  • ').append(' delete user '); 33 | }); 34 | }); 35 | }); 36 | 37 | $('#newUser').live('click', function(){ 38 | $('#userForm').slideToggle(); 39 | }); 40 | 41 | jQuery(function(){ 42 | jQuery.getJSON('wordpress/wp-content/plugins/jasper/runreport.php?func=getReports&uri=/reports/samples', 43 | function(data){ 44 | var sel = jQuery('#reportList').empty(); 45 | jQuery.each(data, function(){ 46 | sel.append($('