<?php	

$pid 	= $_GET['pid'];

// EXPENSES DESC MANAGER
include('r_dbc.php');
$sqlmid = "select desc_manager
			from ccmanager_id 
			where pid='".$pid."' 
			and expenses = 1";

$resultmid = mysqli_query($conn, $sqlmid);

if (mysqli_num_rows($resultmid) > 0) {
      while($rowmid = mysqli_fetch_assoc($resultmid)) {
		$desc_manager_expenses		= $rowmid["desc_manager"];
    }
} 
mysqli_close($conn);
?>

<?php
// ENGLISH TRANSLATION FILE


$htitle 				= "Rabio - Documentation";
$hnavi					= "Navigation";

$hget_started			= "Rabio Setup";
$hget_started_text 		= "<p>Rapid Business Information Organizer (<b>Rabio</b>) is a software for recording and handling business data easy, fast and secure.</p>
							<p>The backend structure records activities of business entities that are called <strong>Projects</strong>.
							<br>For some installations, according to purchased plan, multiple projects can be recorded at the same time.</p>
							<p>For every project the system is recording financial activities which are called <strong>Managers</strong>.
							<br>
								Managers on Rabio can be:</p>
							<ul>
								<li>Budget</li>
								<li>Costs</li>
								<li>Actual Costs</li>
								<li>Expenses</li>
								<li>Earned Value</li>
								<li>Forecast</li>								
								<li>Projection</li>								
								<li>Expected Production</li>
								<li>Actual Production</li>
								<li>or any other activity according to business plans</li>								
							</ul>
							<p>The flexible reporting system can be customized following rules and produce new columns. For example in a project where <strong>Budget (column A)</strong> and <strong>Expenses (column B)</strong> are recorded, a new column can be produced called <strong>Difference (column C)</strong> where the difference can be customized as <strong>C = A-B</strong>. 
							<br> Check the <a href='#structure1'><b>Managers Setup</b> here.</a></p>
							
							<p>The recording structure of every financial activity consists of</p>
							<ul>
								<li>Centers (required)</li>
								<li>Categories (required)</li>
								<li>Tags (optional)</li>
							</ul>
							<p>The built in <a href='#users'><b>user system</b></a> is offering various roles per user:</p>														
							<ul>
								<li>Administator</li>
								<li>Editor</li>
								<li>Viewer</li>
							</ul>";

$husers					= "User System";

$husers_text 			= "<p>The built in user system is offering various access levels and roles per user. The system if accessed by three diferent user roles which are:</p>														
							<ul>
								<li><b>Super Administator</b>: the super administrator is the super user of the system. Super administrator can insert new projects and can insert, update or delete on all forms. Data structure forms can be accessed by a super administrator on all projects. If a new center or category is needed in any of the projects the super administrator can insert them.</li>
								<li><b>Administator</b>: an administrator is an admin user of the system only for the projects that are assigned to this account. Administrator can insert, update or delete on all forms of the assigned projects. Data structure forms are only accessed by an administrator on the assigned to this account projects. If a new center or category is needed only an administrator can insert them on the assigned projects.</li>
								<li><b>Editor</b>:  an editor is a user that has limited access to the system. By default an editor can insert and edit records in main manager forms but is not able to delete. In structure forms and editor is able only to edit records. An editor can be restricted in manager forms to insert records of financial activities only for specific centers of categories.</li>
								<li><b>Viewer</b>: a viewer is a user that only has viewing access to the system. By default a viewer is not able to insert, edit or delete records in any of the available manager or structure forms.</li>
							</ul>
							<p>Depending the installation many different users can access the system with various roles. It is possible to have many editors or viewers where at the same time they can be restricted to some of the projects that are in the system.</p>";


$hforms					= "Forms";

$hforms_text 			= "<p>In the Forms section, are placed all the forms are used to record the financial activities of any project. These forms are managing all the data and they are called managers. Depending the project manager forms can be:</p>
							<ul>
								<li>Costs</li>
								<li>Actual Costs</li>
								<li>Expenses</li>
								<li>Earned Value</li>
								<li>Forecast</li>								
								<li>Projection</li>								
								<li>Expected Production</li>
								<li>Actual Production</li>
							</ul>
							<p>In a manager form to add a new record a Center and a Category are always required. <br>
								Date and ammount are required for any record.<br>
								Unit cost is calculated by the system.<br>
								Comments are optional for any record.<br>
								Based on Center and Category the form allows the users to add (or not) quantity.<br></p>
								<p><strong>Tags</strong>: When a record is saved at any moment it can be updated with tags. Users can add as many different tags as they want.</p>";

							
							
$hreports				= "Reports";			

$hreports_text			= "<p>In Reports section are placed all the reports for reporting purposes</p>
							<ul>
								<li>Calendar Report: detailed report of all records per date</li>
								<li>Centers Totals: centers summary report of all activities</li>
								<li>Categories Totals: categories summary report of all activities</li>
								<li>Center Total: summary report of all activities for a selected center</li>
								<li>Category Total: summary report of all activities for a selected category</li>								
								<li>Centers-Categories Total: summary report for a selected center including summaries for all category activities</li>
								<li>Categories-Centers Total: summary report for a selected category including summaries for all center activities</li>
								<li>Center ".$desc_manager_expenses.": summary report for a selected center</li>
								<li>Category ".$desc_manager_expenses.": summary report for a selected category</li>																
								<li>Tags ".$desc_manager_expenses.": a list of all recorded tags that opens the report with detailed list of all ".strtolower($desc_manager_expenses)."</li>
								<li>Invoice Report: if invoice column is filled in ".$desc_manager_expenses." form detailed and summary data are presented in this report.</li>
								<li>Monthly Report: a monthly report following the structure of the project.</li>
							</ul>";				
							
$hviews					= "Views";			

$hviews_text			= "<p>In Views section are placed advanced reports</p>
							<ul>
								<li>Dashboard: a report with summaries and charts</li>
								<li>Centers Progress: centers progress report per month or per quarter of year including column chart for ".strtolower($desc_manager_expenses).".</li>
								<li>Categories Progress: categories progress report per month or per quarter of year including column chart for ".strtolower($desc_manager_expenses).".</li>
								<li>Totals View: a special query view of total ".strtolower($desc_manager_expenses).".</li>								
								<li>".$desc_manager_expenses." Calendar View: a calendar view presenting ".strtolower($desc_manager_expenses)." summaries per day.</li>
								<li>Gantt Chart: This view presents a gantt chart when a manager is set to planned.</li>																
								<li>Data Export: Data export of every available manager in project. Data export is available in XLS or XML format.</li>																
								<li>".$desc_manager_expenses." Totals View: a summaries view presenting ".strtolower($desc_manager_expenses)." summaries using various criteria like year, month, etc.</li>								
								<li>Stock View Centers: a summaries view presenting quantity summaries per centers and categories </li>								
								<li>Stock View Categories: a summaries view presenting quantity summaries per categories </li>								
								<li>".$desc_manager_expenses." Geo Chart: a geo chart presentin ".strtolower($desc_manager_expenses)." summaries per geographical area.</li>								
							</ul>";											
				

				
$hstructure				= "Structure";

$hstructure_text 			= "<p>In structure section there all the basic elements of the system.<br>
									For any project in order to be installed in the system there has to be a plan.<br>
									The plan will be saved following the system's structure which is based on centers and categories entities.</p>
							<ul>
								<li>Centers Groups: centers are organized in groups. These groups are the 1st level of data structure for recording and reporting.</li>
								<li>Centers: centers are saved in this form.</li>								
								<li>Categories Groups: categories are organized in groups. These groups are the 1st level of data structure for recording and reporting.</li>
								<li>Categories: categories are saved in this form.</li>
								<li>Project: project definition and parameters.</li>																								
								<li>Managers: for every project the system saves financial activities. These activities are called Managers. They are accessed and organized only by administrators.</li>																								
								<li>Users: users definition and parameters.</li>																								
								<li>Users-Projects: in this form users are assigned to project with a user role like:</li>
									<ul>
											<li>Super Administrator</li>									
											<li>Administrator</li>									
											<li>Editor</li>									
											<li>Viewer</li>									
									</ul>
								<li>Users-Centers: this form is used by administrator to limit users having access to specific centers.</li>									
								<li>Users-Categories: this form is used by administrator to limit users having access to specific categories.</li>									
								<li>Analytics: this is an analytics report presenting view statistics.</li>									
								<li>Super Admin Report: this is a report accessed by Super Administrator presenting server data and statistics for all projects.</li>									
							</ul>";											
							
$hstructure1				= "Managers Setup";

$hstructure1_text 			= "<p>The special form of <b>Managers</b> is onle accessible to administrators.
							<br>This special form includes the rules for every manager that will be recorded.
							<br>The rules are used by the internal intelligent reporting system for the production of reports.
							<br>The internal reporting system, based on the rules, turns financial activities of managers to columns in reports.
							</p>
							
							<p>There two different kinds of managers for the system which are:</p>
							<ul>
								<li><b>Recorded Managers</b></li>
								<p>Recorder managers on Rabio can be Budget, Costs, Actual Costs, Expenses, etc. All data on for these managers are recorded by users or in some cases data are produced by external systems and they are imported on Rabio database.
								</p>
								<li><b>Calculated Managers</b></li>								
								<p>Calculated managers are columns that are produced after following specific rules on Managers form.</p>
							</ul>

							<p>Managers Form Fields</p>
							<ul>
								<li><b>Manager ID</b>: this is the unique ID of a manager</li>
								<li><b>Description</b>: the basic description of a manager</li>								
								<li><b>Budget</b>: the field accepts only two values 1-Yes and 0-No.
									<ul>
										<li>When value is 1 the column is used for budget. The column can be recorded or can be calculated from 2 other columns.</li>
										<li>When value is 0 the column is not used as a budget column.</li>
									</ul>
								</li>
								<li><b>Expenses or Costs</b>: the field accepts only two values 1-Yes and 0-No.
									<ul>								
										<li>When value is 1 the column is used for recording expenses, costs or actual costs.</li>
										<li>When value is 0 the column is not used as an expenses column.</li>
									</ul>								
								</li>															
								<li><b>Report Column Order</b>: this field accepts only letters like A,B,C,D. It is unique for every manager.</li>
								<li><b>Report Title Description</b>: this field is used by the reporting system as header for columns.</li>								
								<li><b>Calculation Column</b>: the field accepts only two values 1-Yes and 0-No.
									<ul>
										<li>When it is a recording column this value is set to 0.</li>
										<li>When it is a calculated column this value is set to 1.</li>
									</ul>
								</li>
								<li><b>Calculation Column</b>: the field accepts only three values which are M-Minus P-Plus E-Equal.
									<ul>
										<li>When the value is set to M then the result of the calculated column is a difference between two columns</li>
										<li>When the value is set to P then the result of the calculated column is an addition between two columns</li>
										<li>When the value is set to E then the result of the calculated column is equal to another column</li>
									</ul>
								<p>The values on this field are functional <u>only when the manager is calculated</u>.</p>
								</li>
								<li><b>Columns for Calculation</b>: the field accepts the unique IDs of the managers that will be calculated.
									<ul>
										<li>In case that the calculation of column is set to M-Minus, the result of the difference comes from the removal of the 2nd manager from the 1st. The numeric values are separated by comma like 1,2 or 3,4 or 5,4 etc.</li>
										<li>In case that the calculation of column is set to P-Plus, the result of the addition comes from the summary of both managers.  The numeric values are separated by comma like 1,2 or 3,4 or 5,4 etc.</li>
										<li>In case that the calculation of column is set to E-Equal, the result is the copy of values from another manager.  In this case only one numeric value is accepted.</li>
									</ul>
								<p>The values on this field are functional <u>only when the manager is calculated</u>.</p>									
								</li>
								
								<li><b>Percentage Column</b>: the field accepts only two values 1-Yes and 0-No.
									<ul>								
										<li>When value is 1 a new column is produced after the calculated column with the percentage result of the calculated column.</li>
										<li>When value is 0 a percentage column is not created.</li>
									</ul>								
								<p>The values on this field are functional <u>only when the manager is calculated</u>.</p>																		
								</li>									
								<li><b>Main Menu Order</b>: this is a unique numeric value which is used for recording managers as the order of appearance in the main menu of the system. When it is a calculated column the value is set to 0</li>

							</ul>";
												

							
$hcredit				= "Credits";							

$hcredit_text 			= "<p>Credits</p>
							<ul>
								<li>Visit Rabio's official webpage <a href='https://www.rabio.eu' target=_blank ><strong>Rabio.eu</strong></a></li>
								<li>See Rabio's <a href='http://rabio.eu/rabio/?post_type=post#page-content' target=_blank ><strong>Blog</strong></a></li>
								<li>Visit Developer's page <a href='https://www.byte12.com' target=_blank ><strong>Byte12.com</strong></a></li>								
							</ul>";											
?>
