<?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],[Dbpath],[DelQuery],[DN],[FetchCond],[FetchOption],[FetchResult([TblName])(0)(&apos;id&apos;)],[FetchResult([TblName])(0)(&apos;name&apos;)],[FetchResult],[FileNameInput],[isForegr],[ItemID],[ItemName],[lastnin],[myResult],[namein],[pushText],[pushTitle],[randAge],[TbColTp],[TbColumns],[TblName],[TextareaText],[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>NativeView</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>
			</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;0&quot; &quot;[Dbpath]&quot; true</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>CloseDatabase &quot;&quot; &quot;&quot;
RestoreDataBase &quot;[DN]&quot; &quot;0&quot; &quot;[Dbpath]&quot; true</click>
						</PushButton>
						<TextInput id="TextInput4">
							<left>17px</left>
							<top>17px</top>
							<width>323px</width>
							<height>43px</height>
							<variable>DN</variable>
							<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>
							<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;0&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;&quot; &quot;&quot;</click>
						</PushButton>
					</Components>
				</Page>
				<Page id="Pg2">
					<style>overflow-y:auto</style>
					<Components>
						<PushButton id="insert">
							<left>18px</left>
							<top>107px</top>
							<width>324px</width>
							<height>42px</height>
							<css_class>Pushbutton</css_class>
							<caption>InsertData</caption>
							<icon>glyphicon-text-size</icon>
							<icon_position>pright</icon_position>
							<kind>primary</kind>
							<click>RandomEx 18 40 [randAge]
InsertData &quot;[TblName]&quot; &quot;[namein]&quot; &quot;[lastnin]&quot; &quot;InsertNew&quot; &quot;ErrorInsert&quot;</click>
						</PushButton>
						<Container id="Table">
							<left>17px</left>
							<top>155px</top>
							<width>324px</width>
							<height>216px</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>
						<PushButton id="showTable">
							<left>16px</left>
							<top>526px</top>
							<width>325px</width>
							<height>44px</height>
							<css_class>Pushbutton</css_class>
							<caption>Fetch Database</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; &quot;FetchDone&quot;</click>
						</PushButton>
						<TextInput id="FetchCondition">
							<left>18px</left>
							<top>431px</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>383px</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>480px</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>185px</left>
							<top>580px</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>17px</left>
							<top>581px</top>
							<width>156px</width>
							<height>37px</height>
							<caption>Previews Page</caption>
							<click>GotoPage &quot;Pg1&quot;</click>
						</PushButton>
					</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>354px</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;&quot; &quot;UpdateSuccess&quot; &quot;&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>
					</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>
