<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>neoCms Sample 1</AppTitle>
	<AppShortName>neoCms1</AppShortName>
	<Author>SinLios</Author>
	<Version>1.1</Version>
	<Description>neoCms Sample 1</Description>
	<Variables>[$index],[data.length],[data],[errorVar],[inview],[last],[limit],[longitud],[record._id],[record.birthdate],[record.description],[record.name],[record.picture.path],[record],[token],[url]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>900</PageWidth>
	<PageHeight>550</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>True</ResponsiveSize>
	<PublishPlatform>WinEXE</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<EXEBuildTarget>D:\pruebas\neocms-apps\neoCms-sample-01.exe</EXEBuildTarget>
	<AppIcon>C:\Users\emo\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<CustomCSS>.row-striped{
  background-color: #efefef;
}

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}</CustomCSS>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>False</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="about">
					<Code>AlertBoxEx &quot;Demo&quot; &quot;Demo ng-repeat for NeoCms &amp; a trick to open record in modal window, by Emo&quot; &quot;200&quot; &quot;400&quot; &quot;gray&quot; &quot;&quot;</Code>
				</Function>
				<Function name="view">
					<Code>AlertBoxEx &quot;View&quot; &quot;[thedata]&quot; &quot;320&quot; &quot;400&quot; &quot;gray&quot; &quot;&quot;</Code>
					<Params>[thedata]|STRING|thedata</Params>
				</Function>
				<Function name="datos">
					<Code>SetVar [longitud] [data.length]
SetVar [cantidad_de_registros] 5

Math &quot;[longitud]/[cantidad_de_registros]&quot; 0 [numero_de_paginas]

beginjs
var app=angular.module(&apos;myApp&apos;, []);

app.controller(&apos;MyCtrl&apos;, [&apos;$scope&apos;, function ($scope) {
    $scope.currentPage = 0;
    $scope.data = $App.data;
    $scope.q = &apos;&apos;;
 


    $scope.$watch(&apos;q&apos;, function(newValue,oldValue){
    if(oldValue!=newValue){
        $scope.currentPage = 0;
      }
    },true);
}]);




endjs



</Code>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="card">
					<style>border-color:#FFB463;border-radius:10px;border-style:solid;border-width:2px;box-shadow:0px 0px 30px #888888;overflow-x:hidden;overflow-y:hidden</style>
					<pageenter>neoTopMenuInitialize &quot;top&quot; &quot;&quot; &quot;Demo ng-repeat paging&quot; &quot;Default&quot; &quot;Static top&quot;
neoTopMenuAddItem &quot;top&quot; &quot;About&quot; &quot;Right&quot; &quot;neo.about()&quot;



.Sets neoCms origin URL
SetVar [url] &quot;https://cms.sinlios.eu&quot;
neoCmsSetUrl &quot;mycms&quot; &quot;[url]&quot;

.Set the token with permission to read the Customers collection.
SetVar [token] &quot;5c077cb7591db00163b122b9c2a4e1&quot;
neoCmsSetToken &quot;mycms&quot; &quot;[token]&quot;

.Create two empty objects
CreateEmptyObject [data]
CreateEmptyObject [record]

.Load Customers collection into [data] and call parseDate once it&apos;s loaded.
.neoCmsGetCollection &quot;mycms&quot; &quot;Customers&quot; [data] &quot;parseData&quot;

neoCmsGetOrderedCollection &quot;mycms&quot; &quot;Customers&quot; &quot;&quot; 0 0 &quot;_modified&quot; &quot;Descending&quot; [data] [errorVar] &quot;datos&quot;



</pageenter>
					<Components>
						<Container id="top">
							<left>16px</left>
							<top>146px</top>
							<height>80px</height>
							<css_class>col-xs-12</css_class>
						</Container>
						<Container id="Container3">
							<left>0px</left>
							<top>30px</top>
							<height>136px</height>
							<style>padding-left:36px</style>
							<css_class>row</css_class>
							<html>

&lt;div ng-repeat=&quot;record in data  | limitTo: [cantidad_de_registros] :currentPage*[cantidad_de_registros] track by $index&quot;&gt;
 
   &lt;div class=&quot;row row-striped&quot; style=&quot;margin-bottom:10px;&quot;&gt;

     &lt;div class=&quot;panel-body col-xs-10&quot; style=&quot;background:#f3f3f3;&quot;&gt;

      &lt;div&gt;&lt;strong&gt;Name:&lt;/strong&gt; [record.name]&lt;/div&gt;
      &lt;div&gt;&lt;strong&gt;Birh Date:&lt;/strong&gt; [record.birthdate]&lt;/div&gt;
     &lt;/div&gt;

    &lt;div class=&quot;col-xs-2  &quot;&gt;
      &lt;button class=&quot;btn btn-primary pull-right&quot; id=&quot;[$index]&quot; value=&quot; &lt;img  src=&apos;[url][record.picture.path]&apos; style=&apos;width:100px;height:100px;&apos;&gt;&lt;br&gt;&lt;b&gt;ID&lt;/b&gt;:[record._id]&lt;br&gt;&lt;b&gt;Name:&lt;/b&gt;[record.name]&lt;br&gt;&lt;b&gt;Birthdate:&lt;/b&gt;[record.birthdate]&lt;br&gt;&lt;b&gt;Description:&lt;/b&gt;[record.description]&quot; onclick=&quot;neo.view(this.value)&quot; type=&quot;button&quot; class=&quot;btn btn-primary&quot;&gt;View&lt;/button&gt;
    &lt;/div&gt;

 &lt;/div&gt;


&lt;/div&gt;



    &lt;div class=&quot;container&quot;&gt;
    &lt;div class=&quot;row&quot;&gt;
   &lt;div class=&quot;col-md-3 col-md-offset-5&quot;&gt;

     &lt;button type=&quot;button&quot; class=&quot;btn btn-warning  &quot; ng-disabled=&quot;currentPage+1 &lt;= 1&quot; ng-click=&quot;currentPage=currentPage-1&quot;&gt;
        Previous
     &lt;/button&gt;
&lt;span &gt;[currentPage+1]/[numero_de_paginas]&lt;/span&gt;
     &lt;button type=&quot;button&quot; class=&quot;btn btn-warning &quot; ng-disabled=&quot;currentPage &gt;= longitud/cantidad_de_registros - 1&quot; ng-click=&quot;currentPage=currentPage+1&quot;&gt;
        Next
     &lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;




&lt;/div&gt;



</html>
						</Container>
						<Container id="footer">
							<left>0px</left>
							<top>0px</top>
							<height>0px</height>
							<style>background-color:#E0E0E0;min-height:60px</style>
							<css_class>row</css_class>
						</Container>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>900px</width>
							<height>600px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
