<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Sqlite Database</AppTitle>
	<AppShortName>SQLite</AppShortName>
	<Author>Shahram ForouzanMehr</Author>
	<Version>1.0</Version>
	<DesignDeviceName>Google Nexus 5</DesignDeviceName>
	<Variables>[colnames],[CSVREs],[Dbpath],[DelQuery],[DN],[FetchCond],[FetchOption],[FetchResult([TblName])(0)(&apos;id&apos;)],[FetchResult([TblName])(0)(&apos;name&apos;)],[FetchResult],[FileAddress],[ItemID],[ItemName],[lastnin],[myFilecont],[namein],[randAge],[RestoreLoad],[TbColTp],[TbColumns],[TblName],[UpdAdvQuer],[UpdColumns],[UpdColumnsValue],[UpdCondstatement],[UpdCondValue]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>360</PageWidth>
	<PageHeight>640</PageHeight>
	<AutoSizeWidth>True</AutoSizeWidth>
	<AutoSizeHeight>True</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>MobileApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>C:\Users\Shahram\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<MobileID>com.FOMECO.SQLite</MobileID>
	<MobileOSTypes>[AndroidOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>False</Sizeable>
	<MaximizeBtn>True</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>True</ContextMenu>
	<AlwaysOnTop>True</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>True</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<CustomXML>&lt;plugin name=&quot;cordova-plugin-dialogs&quot; source=&quot;npm&quot; /&gt;
&lt;plugin name=&quot;cordova-plugin-statusbar&quot; source=&quot;npm&quot; /&gt;
&lt;preference name=&quot;fullscreen&quot; value=&quot;false&quot; /&gt;
&lt;preference name=&quot;disallowOverscroll&quot; value=&quot;true&quot; /&gt;
&lt;preference name=&quot;StatusBarOverlaysWebView&quot; value=&quot;false&quot; /&gt;
&lt;preference name=&quot;StatusBarBackgroundColor&quot; value=&quot;#000000&quot; /&gt;
&lt;preference name=&quot;StatusBarStyle&quot; value=&quot;default&quot; /&gt;

&lt;edit-config file=&quot;app/src/main/AndroidManifest.xml&quot; mode=&quot;merge&quot; target=&quot;/manifest/application&quot;&gt;
 &lt;application android:usesCleartextTraffic=&quot;true&quot; android:requestLegacyExternalStorage=&quot;true&quot; /&gt;
&lt;/edit-config&gt;</CustomXML>
	<CustomBodyMetadata>&lt;script src=&quot;cordova.js&quot;&gt;&lt;/script&gt;</CustomBodyMetadata>
	<startup>OpenDatabase &quot;[DN]&quot; &quot;0&quot; &quot;openDbSuccess&quot; &quot;opendbError&quot;</startup>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="MessBoxBtn">
					<Code>AlertBox &quot;Alert&quot; &quot;You select  [clickedBtn]&quot; &quot;&quot;</Code>
					<Params>[clickedBtn]|INTEGER|MessageButtonClicked</Params>
				</Function>
				<Function name="ExitApp">
					<Code>If [ExitResult] = 1
BeginJS
 window.navigator.app.exitApp();
EndJS
EndIf</Code>
					<Params>[ExitResult]|INTEGER|</Params>
				</Function>
				<Function name="sucfile">
					<Code>AlertBox &quot;result&quot; &quot;test callback success&quot; &quot;&quot;</Code>
				</Function>
				<Function name="TableSuccess">
					<Code>AlertBox &quot;Table create result&quot; &quot;Table [mktablesuccess] Created!&quot; &quot;&quot;</Code>
					<Params>[mktablesuccess]|STRING|Tb Name</Params>
				</Function>
				<Function name="ErrorInsert">
					<Code>jsAlert &quot;Error. Check inputs!&quot;</Code>
				</Function>
				<Function name="InsertNew">
					<Code>jsAlert &quot;New Record Added!&quot;</Code>
				</Function>
				<Function name="DropTableSuccess">
					<Code>jsAlert &quot;[DropSecresult] Droped!&quot;</Code>
					<Params>[DropSecresult]|STRING|Tablename</Params>
				</Function>
				<Function name="DataDeleted">
					<Code>jsAlert &quot;Data Deleted!&quot;</Code>
				</Function>
				<Function name="FetchDone">
					<Code>SetVar [ItemID] &quot;[FetchResult([TblName])(0)(&apos;id&apos;)]&quot;
SetVar [ItemName] &quot;[FetchResult([TblName])(0)(&apos;name&apos;)]&quot;</Code>
				</Function>
				<Function name="ErrorNewTable">
					<Code>BeginJS
alert(&quot;Error occurred while creating the table.&quot; + [error]);
EndJS</Code>
					<Params>[error]|STRING|Error</Params>
				</Function>
				<Function name="UpdateSuccess">
					<Code>jsAlert &quot;Data Update...&quot;</Code>
				</Function>
				<Function name="openDbSuccess">
					<Code>jsAlert &quot;Database Connected...&quot;</Code>
				</Function>
				<Function name="opendbError">
					<Code>jsAlert &quot;Database Connect error: [dbconecterr] &quot;</Code>
					<Params>[dbconecterr]|STRING|Database connect error</Params>
				</Function>
				<Function name="fileSux">
					<Code>WriteOnFile &quot;SD-Card&quot; &quot;XSQLite&quot; &quot;[TblName].csv&quot; &quot;[CSVREs]&quot; false &quot;&quot; &quot;&quot;
jsAlert &quot;is done!&quot;</Code>
				</Function>
				<Function name="fileErr">
					<Code>jsAlert &quot;[filerr]&quot;</Code>
					<Params>[filerr]|STRING|Erro</Params>
				</Function>
				<Function name="FoldMaked">
					<Code>MakeFile &quot;SD-Card&quot; &quot;XSQLite&quot; &quot;[TblName].csv&quot; true &quot;fileSux&quot; &quot;fileErr&quot;</Code>
				</Function>
				<Function name="BakcupSux">
					<Code>jsAlert &quot;[bkpres]&quot;</Code>
					<Params>[bkpres]|STRING|esult</Params>
				</Function>
				<Function name="BkpErr">
					<Params>[BKkperr]|STRING|erro</Params>
				</Function>
				<Function name="restoreDBsux">
					<Code>jsAlert &quot;Database restore successful.&quot;</Code>
				</Function>
				<Function name="restoreDBErr">
					<Code>jsAlert &quot;Database restore Error. [Err]&quot;</Code>
					<Params>[Err]|STRING|</Params>
				</Function>
				<Function name="closesux">
					<Code>jsAlert &quot;Database closed successfully&quot;</Code>
				</Function>
				<Function name="closeErr">
					<Code>jsAlert &quot;An error eccured to close database&quot;</Code>
				</Function>
				<Function name="dbRemoveSux">
					<Code>jsAlert &quot;Database removed successfully&quot;</Code>
				</Function>
				<Function name="UpdateErr">
					<Code>jsAlert &quot;Update Error... code: [upderr]&quot;</Code>
					<Params>[upderr]|STRING|</Params>
				</Function>
				<Function name="csvresSux">
					<Code>jsAlert &quot;[restoredNum] records restored...&quot;</Code>
					<Params>[restoredNum]|STRING|</Params>
				</Function>
				<Function name="csvResErr">
					<Code>jsAlert &quot;[csvResErr]&quot;</Code>
					<Params>[csvResErr]|STRING|</Params>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="Pg1">
					<Components>
						<Rectangle id="Rectangle3">
							<left>4px</left>
							<top>334px</top>
							<width>346px</width>
							<height>247px</height>
							<style>fill:#F5F5F5;stroke:black;stroke-width:1px</style>
							<corner_radius>0</corner_radius>
						</Rectangle>
						<Rectangle id="Rectangle2">
							<left>5px</left>
							<top>172px</top>
							<width>345px</width>
							<height>158px</height>
							<style>fill:#F5F5F5;stroke:black;stroke-width:1px</style>
							<corner_radius>0</corner_radius>
						</Rectangle>
						<Rectangle id="Rectangle1">
							<left>5px</left>
							<top>4px</top>
							<width>345px</width>
							<height>160px</height>
							<style>fill:#F5F5F5;stroke:black;stroke-width:1px</style>
							<corner_radius>0</corner_radius>
						</Rectangle>
						<PushButton id="PushButton5">
							<left>18px</left>
							<top>228px</top>
							<width>323px</width>
							<height>43px</height>
							<css_class>Pushbutton</css_class>
							<caption>BackUp DB</caption>
							<icon>glyphicon-floppy-open</icon>
							<icon_position>pright</icon_position>
							<kind>success</kind>
							<click>BackupDatabase &quot;[DN]&quot; &quot;[Dbpath]&quot; &quot;BakcupSux&quot; &quot;BkpErr&quot;</click>
						</PushButton>
						<PushButton id="PushButton24">
							<left>18px</left>
							<top>276px</top>
							<width>324px</width>
							<height>43px</height>
							<style>background-color:#FABC02</style>
							<css_class>Pushbutton</css_class>
							<caption>Restore DB</caption>
							<icon>glyphicon-retweet</icon>
							<icon_position>pright</icon_position>
							<kind>warning</kind>
							<click>RestoreDataBase &quot;[DN]&quot; &quot;[Dbpath]&quot; &quot;restoreDBsux&quot; &quot;restoreDBErr&quot;</click>
						</PushButton>
						<TextInput id="TextInput4">
							<left>17px</left>
							<top>17px</top>
							<width>323px</width>
							<height>43px</height>
							<variable>DN</variable>
							<init_value>sql.db</init_value>
							<place_holder>Database Name (e.g. myDb.db)</place_holder>
						</TextInput>
						<PushButton id="PushButton25">
							<left>17px</left>
							<top>66px</top>
							<width>324px</width>
							<height>41px</height>
							<css_class>Pushbutton</css_class>
							<caption>New Database/Connect Database</caption>
							<icon>glyphicon-list</icon>
							<icon_position>pright</icon_position>
							<kind>primary</kind>
							<click>OpenDatabase &quot;[DN]&quot; &quot;0&quot; &quot;openDbSuccess&quot; &quot;opendbError&quot;</click>
						</PushButton>
						<TextInput id="TextInput5">
							<left>18px</left>
							<top>341px</top>
							<width>325px</width>
							<height>37px</height>
							<variable>TblName</variable>
							<init_value>Tb1</init_value>
							<place_holder>Table Name (e.g. myTable)</place_holder>
						</TextInput>
						<PushButton id="DropTable">
							<left>18px</left>
							<top>528px</top>
							<width>324px</width>
							<height>43px</height>
							<caption>DropTable</caption>
							<icon>glyphicon-remove</icon>
							<icon_position>pright</icon_position>
							<kind>danger</kind>
							<click>DropTable &quot;[TblName]&quot; &quot;DropTableSuccess&quot; &quot;&quot;</click>
						</PushButton>
						<PushButton id="PushButton14">
							<left>18px</left>
							<top>481px</top>
							<width>324px</width>
							<height>40px</height>
							<style>color:#003403;background-color:#7CCC00</style>
							<caption>Create Table</caption>
							<icon>glyphicon-menu-hamburger</icon>
							<kind>success</kind>
							<click>CreateTable &quot;[TblName]&quot; &quot;[TbColumns]&quot; &quot;[TbColTp]&quot; &quot;TableSuccess&quot; &quot;ErrorNewTable&quot;</click>
						</PushButton>
						<PushButton id="PushButton2">
							<left>18px</left>
							<top>588px</top>
							<width>323px</width>
							<height>43px</height>
							<style>color:#FFFFFF;background-color:#383838</style>
							<caption>Insert Records/Fetch Data</caption>
							<kind>custom</kind>
							<click>GotoPage &quot;Pg2&quot;</click>
						</PushButton>
						<PushButton id="PushButton26">
							<left>180px</left>
							<top>114px</top>
							<width>162px</width>
							<height>42px</height>
							<css_class>Pushbutton</css_class>
							<caption>Remove Database</caption>
							<icon>glyphicon-erase</icon>
							<icon_position>pright</icon_position>
							<kind>danger</kind>
							<click>RemoveDatabase &quot;[DN]&quot; &quot;dbRemoveSux&quot; &quot;&quot;</click>
						</PushButton>
						<TextInput id="TextInput6">
							<left>18px</left>
							<top>384px</top>
							<width>324px</width>
							<height>41px</height>
							<variable>TbColumns</variable>
							<place_holder>Table Columns (e.g. id, name etc)</place_holder>
						</TextInput>
						<TextInput id="TextInput7">
							<left>18px</left>
							<top>432px</top>
							<width>324px</width>
							<height>43px</height>
							<variable>TbColTp</variable>
							<place_holder>Column Type (e.g. Integer primary key autoincreament, text etc)</place_holder>
						</TextInput>
						<TextInput id="TextInput8">
							<left>17px</left>
							<top>180px</top>
							<width>325px</width>
							<height>41px</height>
							<variable>Dbpath</variable>
							<place_holder>Path (Folder/subFolder)or(Empty for root)</place_holder>
						</TextInput>
						<PushButton id="PushButton29">
							<left>18px</left>
							<top>114px</top>
							<width>156px</width>
							<height>42px</height>
							<css_class>Pushbutton</css_class>
							<caption>Close Database</caption>
							<icon>glyphicon-erase</icon>
							<icon_position>pright</icon_position>
							<kind>info</kind>
							<click>CloseDatabase &quot;closesux&quot; &quot;closeErr&quot;</click>
						</PushButton>
					</Components>
				</Page>
				<Page id="Pg2">
					<style>overflow-y:auto</style>
					<Components>
						<PushButton id="showTable">
							<left>18px</left>
							<top>491px</top>
							<width>324px</width>
							<height>44px</height>
							<css_class>Pushbutton</css_class>
							<caption>Fetch</caption>
							<icon>glyphicon-list</icon>
							<icon_position>pright</icon_position>
							<kind>success</kind>
							<click>FetchData &quot;[TblName]&quot; &quot;[colnames]&quot; &quot;[FetchCond]&quot; &quot;[FetchOption]&quot; [FetchResult] &quot;Table&quot; [CSVREs] &quot;FetchDone&quot;</click>
						</PushButton>
						<PushButton id="insert">
							<left>17px</left>
							<top>106px</top>
							<width>324px</width>
							<height>37px</height>
							<css_class>Pushbutton</css_class>
							<caption>InsertData</caption>
							<icon>glyphicon-text-size</icon>
							<icon_position>pright</icon_position>
							<kind>primary</kind>
							<click>InsertData &quot;[TblName]&quot; &quot;[namein]&quot; &quot;[lastnin]&quot; &quot;InsertNew&quot; &quot;ErrorInsert&quot;</click>
						</PushButton>
						<Container id="Table">
							<left>16px</left>
							<top>172px</top>
							<width>324px</width>
							<height>169px</height>
							<style>background-color:#fff;border-style:solid;border-width:1px;overflow-y:auto</style>
							<html>Click on me after displaying the table.</html>
							<click>jsAlert &quot;Successfull! \n The first item ID is: [ItemID] \n The first item name is: [ItemName]&quot;</click>
						</Container>
						<TextInput id="name">
							<left>19px</left>
							<top>12px</top>
							<width>324px</width>
							<height>42px</height>
							<variable>namein</variable>
							<place_holder>Column Name (name, age, etc.)</place_holder>
						</TextInput>
						<TextInput id="lastname">
							<left>19px</left>
							<top>60px</top>
							<width>324px</width>
							<height>42px</height>
							<variable>lastnin</variable>
							<place_holder>Column Value (Jhon, 25 etc.)</place_holder>
						</TextInput>
						<TextInput id="FetchCondition">
							<left>18px</left>
							<top>396px</top>
							<width>324px</width>
							<height>40px</height>
							<variable>FetchCond</variable>
							<place_holder>Conditions (e.g. name = &apos;x&apos; AND age = &apos;y&apos;)</place_holder>
						</TextInput>
						<TextInput id="colNametoShow">
							<left>18px</left>
							<top>348px</top>
							<width>324px</width>
							<height>41px</height>
							<variable>colnames</variable>
							<place_holder>Names of the columns (e.g. id, name) or *</place_holder>
						</TextInput>
						<TextInput id="FetchOpt">
							<left>18px</left>
							<top>445px</top>
							<width>324px</width>
							<height>40px</height>
							<variable>FetchOption</variable>
							<place_holder>Options (e.g. ORDER BY age ASC)</place_holder>
						</TextInput>
						<PushButton id="PushButton27">
							<left>186px</left>
							<top>593px</top>
							<width>155px</width>
							<height>37px</height>
							<caption>Delete/Update</caption>
							<kind>warning</kind>
							<click>GotoPage &quot;Pg3&quot;</click>
						</PushButton>
						<PushButton id="PushButton28">
							<left>18px</left>
							<top>594px</top>
							<width>156px</width>
							<height>37px</height>
							<caption>Previews Page</caption>
							<click>GotoPage &quot;Pg1&quot;</click>
						</PushButton>
						<PushButton id="PushButton1">
							<left>16px</left>
							<top>540px</top>
							<width>97px</width>
							<height>41px</height>
							<css_class>Pushbutton</css_class>
							<caption>Save CSV</caption>
							<icon>glyphicon-floppy-disk</icon>
							<icon_position>pright</icon_position>
							<kind>danger</kind>
							<click>MakeFolder &quot;SD-Card(external)&quot; &quot;&quot; &quot;XSQLite&quot; &quot;FoldMaked&quot; &quot;&quot;</click>
						</PushButton>
						<PushButton id="PushButton3">
							<left>300px</left>
							<top>540px</top>
							<width>40px</width>
							<height>41px</height>
							<css_class>Pushbutton</css_class>
							<icon>glyphicon-download-alt</icon>
							<icon_position>pright</icon_position>
							<kind>danger</kind>
							<click>RestoreFromCSV &quot;[TblName]&quot; &quot;[myFilecont]&quot; [RestoreLoad] &quot;csvresSux&quot; &quot;csvResErr&quot;</click>
						</PushButton>
						<ProgressBar id="ProgressBar1">
							<left>17px</left>
							<top>150px</top>
							<width>324px</width>
							<height>17px</height>
							<style>font-size:8pt;font-style:normal;font-weight:normal;text-align:center;text-decoration:none;vertical-align:middle;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px</style>
							<enabled>False</enabled>
							<caption>[RestoreLoad] %</caption>
							<variable>RestoreLoad</variable>
							<init_value>0</init_value>
							<max>100</max>
							<kind>pinfo</kind>
						</ProgressBar>
						<FileInput id="FileInput1">
							<left>120px</left>
							<top>540px</top>
							<width>172px</width>
							<height>41px</height>
							<prop_name>FileSelected</prop_name>
							<variable>FileAddress</variable>
							<place_holder>Brows File</place_holder>
							<change>LocalFileToVar &quot;FileInput1&quot; [myFilecont]</change>
							<caption>Restore from CSV</caption>
						</FileInput>
					</Components>
				</Page>
				<Page id="Pg3">
					<Components>
						<PushButton id="PushButton7">
							<left>180px</left>
							<top>582px</top>
							<width>160px</width>
							<height>38px</height>
							<caption>CloseApp</caption>
							<kind>danger</kind>
							<click>MessageBox &quot;Exit Application&quot; &quot;Are you sure for Exit?&quot; &quot;Ok|Cancel&quot; &quot;ExitApp&quot;</click>
						</PushButton>
						<PushButton id="PushButton21">
							<left>18px</left>
							<top>582px</top>
							<width>157px</width>
							<height>37px</height>
							<caption>Previews Page</caption>
							<click>GotoPage &quot;Pg2&quot;</click>
						</PushButton>
						<TextInput id="DelQueriInp">
							<left>30px</left>
							<top>40px</top>
							<width>300px</width>
							<height>43px</height>
							<variable>DelQuery</variable>
							<place_holder>Delete query (e.g. id= &apos;x&apos;)</place_holder>
						</TextInput>
						<PushButton id="PushButton23">
							<left>30px</left>
							<top>396px</top>
							<width>300px</width>
							<height>44px</height>
							<css_class>Pushbutton</css_class>
							<caption>Update</caption>
							<icon>glyphicon-list</icon>
							<icon_position>pright</icon_position>
							<kind>primary</kind>
							<click>UpdateData &quot;[TblName]&quot; &quot;[UpdColumns]&quot; &quot;[UpdColumnsValue]&quot; &quot;[UpdCondstatement]&quot; &quot;[UpdCondValue]&quot; &quot;AND&quot; &quot;[UpdAdvQuer]&quot; &quot;UpdateSuccess&quot; &quot;UpdateErr&quot;</click>
						</PushButton>
						<PushButton id="PushButton22">
							<left>30px</left>
							<top>96px</top>
							<width>300px</width>
							<height>42px</height>
							<caption>Delete Record</caption>
							<kind>danger</kind>
							<click>DeleteData &quot;[TblName]&quot; &quot;[DelQuery]&quot; &quot;DataDeleted&quot; &quot;&quot;</click>
						</PushButton>
						<TextInput id="columnsUpdta">
							<left>30px</left>
							<top>155px</top>
							<width>300px</width>
							<height>41px</height>
							<variable>UpdColumns</variable>
							<place_holder>Column names(e.g. name, age etc.)</place_holder>
						</TextInput>
						<TextInput id="NewValueUpd">
							<left>30px</left>
							<top>203px</top>
							<width>300px</width>
							<height>41px</height>
							<variable>UpdColumnsValue</variable>
							<place_holder>New Value (e.g. Alex, 32)</place_holder>
						</TextInput>
						<TextInput id="UpdCondstate">
							<left>30px</left>
							<top>251px</top>
							<width>300px</width>
							<height>42px</height>
							<variable>UpdCondstatement</variable>
							<place_holder>Update Condition (id, name etc.)</place_holder>
						</TextInput>
						<TextInput id="TextInput1">
							<left>30px</left>
							<top>301px</top>
							<width>300px</width>
							<height>42px</height>
							<variable>UpdCondValue</variable>
							<place_holder>Update Condition Value (2, John etc.)</place_holder>
						</TextInput>
						<TextInput id="TextInput2">
							<left>30px</left>
							<top>348px</top>
							<width>300px</width>
							<height>42px</height>
							<variable>UpdAdvQuer</variable>
							<place_holder>Combined conditions</place_holder>
						</TextInput>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="MasterPage">
					<Components>
						<DialogContainer id="DialogContainer2">
							<left>0px</left>
							<top>0px</top>
							<width>360px</width>
							<height>640px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
