Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14933 | Rev 14935 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 14933 Rev 14934
Línea 1... Línea 1...
1
<?php 
1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $this->currentUserHelper();
Línea 4... Línea 4...
4
 
4
 
Línea 853... Línea 853...
853
		scale = scale-(scale/10);
853
		scale = scale-(scale/10);
854
		 $("#porciento_scale").html((scale*100).toFixed(2)+"%")
854
		 $("#porciento_scale").html((scale*100).toFixed(2)+"%")
855
		 $("#editorNoticia").css({"transform": "scale("+scale+")"});
855
		 $("#editorNoticia").css({"transform": "scale("+scale+")"});
856
	})
856
	})
Línea -... Línea 857...
-
 
857
 
-
 
858
	$(document).on("click", ".canvas.recortar", function(e){
-
 
859
		$('#menu_bars_btn').trigger('click');
-
 
860
	})
857
 
861
 
858
	$(document).on("click", "#mas_scale", function(e){
862
	$(document).on("click", "#mas_scale", function(e){
859
		e.preventDefault();
863
		e.preventDefault();
860
		scale = scale+(scale/10);
864
		scale = scale+(scale/10);
861
		 $("#porciento_scale").html((scale*100).toFixed(2)+"%")
865
		 $("#porciento_scale").html((scale*100).toFixed(2)+"%")
Línea 1689... Línea 1693...
1689
})
1693
})
1690
    });
1694
    });
1691
JS;
1695
JS;
1692
$this->inlineScript()->captureEnd();
1696
$this->inlineScript()->captureEnd();
1693
?>
1697
?>
1694
  
-
 
Línea -... Línea 1698...
-
 
1698
 
1695
 
1699
 
1696
				
1700
 
1697
<!-- Content Header (Page header) -->
1701
<!-- Content Header (Page header) -->
1698
<section class="content-header">
1702
<section class="content-header">
1699
	<div class="container-fluid">
1703
	<div class="container-fluid">
1700
    	<div class="row mb-2">
1704
		<div class="row mb-2">
1701
        	<div class="col-sm-12">
1705
			<div class="col-sm-12">
1702
            	<h1>LABEL_TOPICS</h1>
1706
				<h1>LABEL_TOPICS</h1>
1703
			</div>
1707
			</div>
1704
		</div>
1708
		</div>
1705
	</div><!-- /.container-fluid -->
1709
	</div><!-- /.container-fluid -->
Línea 1706... Línea 1710...
1706
</section>
1710
</section>
1707
 
1711
 
1708
<section class="content" id='content1'>
1712
<section class="content" id='content1'>
1709
	<div class="container-fluid">
1713
	<div class="container-fluid">
1710
    	<div class="row">
1714
		<div class="row">
1711
        	<div class="col-12">
1715
			<div class="col-12">
1712
				<div class="card">                    
1716
				<div class="card">
1713
					<div class="card-body">
1717
					<div class="card-body">
1714
        	    		<table id="gridTable" class="table   table-hover">
1718
						<table id="gridTable" class="table   table-hover">
1715
                      		<thead>
1719
							<thead>
1716
        						<tr>
1720
								<tr>
1717
                                	<th>LABEL_NAME</th>
1721
									<th>LABEL_NAME</th>
1718
                                  	<th>LABEL_STATUS</th>
1722
									<th>LABEL_STATUS</th>
1719
                                  	<th>LABEL_DETAILS</th>	
1723
									<th>LABEL_DETAILS</th>
1720
                                  	<th>LABEL_ACTIONS</th>
1724
									<th>LABEL_ACTIONS</th>
1721
                                </tr>
1725
								</tr>
1722
                       		</thead>
1726
							</thead>
1723
                         	<tbody>
1727
							<tbody>
1724
                         	</tbody>
1728
							</tbody>
1725
                    	</table>
1729
						</table>
1726
                   	</div>
1730
					</div>
1727
                   	<div class="card-footer clearfix">
1731
					<div class="card-footer clearfix">
1728
                   		<div style="float:right;">
1732
						<div style="float:right;">
1729
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
1733
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
1730
							<?php if($allowAdd) : ?>
1734
							<?php if ($allowAdd) : ?>
1731
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
1735
								<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
1732
							<?php endif; ?>
1736
							<?php endif; ?>
1733
						</div>
1737
						</div>
1734
                 	</div>
1738
					</div>
1735
          		</div>
1739
				</div>
1736
           	</div>     
1740
			</div>
1737
        </div>          
1741
		</div>
1738
 	</div>
1742
	</div>
1739
</section> 
1743
</section>
1740
<section id="addImage" style='display:none' class="">
1744
<section id="addImage" style='display:none' class="">
Línea 1741... Línea 1745...
1741
<div class="d-flex justify-content-center tituloEditor">
1745
	<div class="d-flex justify-content-center tituloEditor">
1742
        <h4>LABEL_ADD_TOPIC</h4>
1746
		<h4>LABEL_ADD_TOPIC</h4>
1743
 
1747
 
1744
    </div>
1748
	</div>
1745
	<div class="grid-padre" >
1749
	<div class="grid-padre">
1746
				<?php 
1750
		<?php
1747
       			 $form = $this->formAdd;
1751
		$form = $this->formAdd;
1748
            		$form->setAttributes([
1752
		$form->setAttributes([
1749
                        'method'  => 'post',
1753
			'method'  => 'post',
1750
            		    'action'  => $routeAdd,
1754
			'action'  => $routeAdd,
1751
                        'name'    => 'form-topic-add',
1755
			'name'    => 'form-topic-add',
1752
                        'id'      => 'form-topic-add',
1756
			'id'      => 'form-topic-add',
1753
                    ]);
1757
		]);
1754
    
1758
 
1755
                    $form->prepare();
1759
		$form->prepare();
1756
                    echo $this->form()->openTag($form);
1760
		echo $this->form()->openTag($form);
1757
                    ?>					
1761
		?>
1758
    			<div class="form-group grid-1-2">
1762
		<div class="form-group grid-1-2">
1759
    				<?php 
1763
			<?php
1760
                        $element = $form->get('name');
1764
			$element = $form->get('name');
1761
                        
-
 
1762
                        $element->setAttributes(['class' => 'form-control']);
-
 
1763
                        $element->setOptions(['label' => 'LABEL_NAME']);
-
 
1764
                        echo $this->formLabel($element);
-
 
1765
                        echo $this->formText($element);
-
 
1766
                    ?>
-
 
1767
				</div>
-
 
1768
       			
-
 
1769
                <div class="form-group grid-1-2">
-
 
1770
                	<?php 
-
 
1771
                    $element = $form->get('description');
1765
 
1772
                    $element->setAttributes(['id' => 'description_add', 'class' => 'form-control', 'rows' => '2','class' => 'form-control']);
-
 
1773
                    $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
-
 
1774
                    echo $this->formLabel($element);
-
 
1775
                    echo $this->formTextArea($element);
-
 
1776
                    ?>
-
 
1777
   				</div>
-
 
1778
				<div class="form-group grid-1-2">
-
 
1779
    				<?php 
-
 
1780
                        $element = $form->get('order');
-
 
1781
                        $element->setAttributes(['class' => 'form-control']);
1766
			$element->setAttributes(['class' => 'form-control']);
1782
                        $element->setOptions(['label' => 'LABEL_ORDER']);
-
 
1783
                        echo $this->formLabel($element);
1767
			$element->setOptions(['label' => 'LABEL_NAME']);
1784
                        echo $this->formText($element);
-
 
1785
                    ?>
-
 
1786
				</div>
-
 
1787
				
-
 
1788
               		<?php 
-
 
1789
                    $element = $form->get('file');
-
 
1790
					$element->setAttributes([ 'class' => 'file']);
-
 
1791
                    echo $this->formHidden($element); ?>
-
 
1792
 
-
 
1793
          		<div class="form-group grid-1-2">
-
 
1794
    				<?php 
-
 
1795
                        $element = $form->get('status');
-
 
1796
                        $element->setAttributes(['class' => 'form-control']);
-
 
1797
                        $element->setOptions(['label' => 'LABEL_STATUS']);
-
 
1798
                        echo $this->formLabel($element);
1768
			echo $this->formLabel($element);
1799
                        echo $this->formSelect($element);
-
 
1800
                    ?>
-
 
1801
				</div>
-
 
Línea -... Línea 1769...
-
 
1769
			echo $this->formText($element);
-
 
1770
			?>
-
 
1771
		</div>
-
 
1772
 
-
 
1773
		<div class="form-group grid-1-2">
-
 
1774
			<?php
-
 
1775
			$element = $form->get('description');
-
 
1776
			$element->setAttributes(['id' => 'description_add', 'class' => 'form-control', 'rows' => '2', 'class' => 'form-control']);
1802
				
1777
			$element->setOptions(['label' => 'LABEL_DESCRIPTION']);
-
 
1778
			echo $this->formLabel($element);
-
 
1779
			echo $this->formTextArea($element);
-
 
1780
			?>
-
 
1781
		</div>
-
 
1782
		<div class="form-group grid-1-2">
-
 
1783
			<?php
-
 
1784
			$element = $form->get('order');
-
 
1785
			$element->setAttributes(['class' => 'form-control']);
-
 
1786
			$element->setOptions(['label' => 'LABEL_ORDER']);
Línea -... Línea 1787...
-
 
1787
			echo $this->formLabel($element);
-
 
1788
			echo $this->formText($element);
-
 
1789
			?>
-
 
1790
		</div>
1803
				<div class="contenido form-group" id="contenido">
1791
 
-
 
1792
		<?php
-
 
1793
		$element = $form->get('file');
-
 
1794
		$element->setAttributes(['class' => 'file']);
-
 
1795
		echo $this->formHidden($element); ?>
-
 
1796
 
-
 
1797
		<div class="form-group grid-1-2">
1804
				
1798
			<?php
-
 
1799
			$element = $form->get('status');
1805
 
1800
			$element->setAttributes(['class' => 'form-control']);
Línea 1806... Línea -...
1806
				</div>		
-
 
1807
 
1801
			$element->setOptions(['label' => 'LABEL_STATUS']);
Línea 1808... Línea -...
1808
        				
-
 
1809
     	      		<?php echo $this->form()->closeTag($form); ?>
-
 
1810
      		</div>
-
 
Línea 1811... Línea -...
1811
 
-
 
1812
   
-
 
1813
</section>
-
 
1814
 
-
 
1815
<section id="topicEdit" style='display:none' class="">
-
 
1816
<div class="d-flex justify-content-center tituloEditor">
-
 
1817
        <h4>LABEL_EDIT_TOPIC</h4>
-
 
1818
 
-
 
1819
    </div>
-
 
1820
	<div class="grid-padre" >
-
 
1821
					<?php 
-
 
1822
       			  $form = $this->formEdit;
-
 
1823
            		$form->setAttributes([
-
 
1824
                        'method'    => 'post',
-
 
1825
                        'name'      => 'form-topic-edit',
-
 
1826
                        'id'        => 'form-topic-edit'
-
 
1827
                    ]);
-
 
1828
    
-
 
1829
                    $form->prepare();
-
 
1830
                    echo $this->form()->openTag($form);
-
 
1831
                    ?>					
-
 
1832
    			<div class="form-group grid-1-2">
-
 
1833
    				<?php 
-
 
1834
                        $element = $form->get('name');
-
 
1835
                        
-
 
1836
                        $element->setAttributes(['class' => 'form-control']);
-
 
1837
                        $element->setOptions(['label' => 'LABEL_NAME']);
-
 
1838
                        echo $this->formLabel($element);
-
 
1839
                        echo $this->formText($element);
-
 
1840
                    ?>
-
 
1841
				</div>
-
 
1842
				<div class="form-group grid-1-2">
-
 
1843
                	<?php 
-
 
1844
                    $element = $form->get('description');
-
 
1845
                    $element->setAttributes(['id' => 'description_edit', 'rows' => '2', 'class' => 'form-control',   'class' => 'form-control']);
-
 
1846
                    $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
-
 
1847
                    echo $this->formLabel($element);
-
 
1848
                    echo $this->formTextArea($element);
-
 
1849
                    ?>
-
 
1850
   				</div>
-
 
1851
				<div class="form-group grid-1-2">
1802
			echo $this->formLabel($element);
1852
    				<?php 
1803
			echo $this->formSelect($element);
1853
                        $element = $form->get('order');
-
 
1854
                        $element->setAttributes(['class' => 'form-control']);
-
 
1855
                        $element->setOptions(['label' => 'LABEL_ORDER']);
-
 
1856
                        echo $this->formLabel($element);
-
 
1857
                        echo $this->formText($element);
-
 
1858
                    ?>
1804
			?>
1859
				</div>
-
 
1860
				
-
 
1861
               		<?php 
-
 
1862
                    $element = $form->get('file');
-
 
1863
					$element->setAttributes([ 'class' => 'file']);
-
 
1864
                    echo $this->formHidden($element); 
-
 
1865
					?>
1805
		</div>
1866
 
-
 
1867
          		<div class="form-group grid-1-2">
1806
 
Línea 1868... Línea -...
1868
    				<?php 
-
 
1869
                        $element = $form->get('status');
-
 
1870
                        $element->setAttributes(['class' => 'form-control']);
-
 
1871
                        $element->setOptions(['label' => 'LABEL_STATUS']);
-
 
1872
                        echo $this->formLabel($element);
-
 
Línea 1873... Línea -...
1873
                        echo $this->formSelect($element);
-
 
1874
                    ?>
1807
		<div class="contenido form-group" id="contenido">
Línea -... Línea 1808...
-
 
1808
 
-
 
1809
 
-
 
1810
		</div>
Línea -... Línea 1811...
-
 
1811
 
-
 
1812
 
-
 
1813
		<?php echo $this->form()->closeTag($form); ?>
-
 
1814
	</div>
-
 
1815
 
-
 
1816
 
-
 
1817
</section>
-
 
1818
 
-
 
1819
<section id="topicEdit" style='display:none' class="">
1875
				</div>
1820
	<div class="d-flex justify-content-center tituloEditor">
1876
 
1821
		<h4>LABEL_EDIT_TOPIC</h4>
-
 
1822
 
-
 
1823
	</div>
1877
				<div class="contenido form-group" id="contenido2">
1824
	<div class="grid-padre">
-
 
1825
		<?php
-
 
1826
		$form = $this->formEdit;
-
 
1827
		$form->setAttributes([
-
 
1828
			'method'    => 'post',
-
 
1829
			'name'      => 'form-topic-edit',
-
 
1830
			'id'        => 'form-topic-edit'
-
 
1831
		]);
-
 
1832
 
-
 
1833
		$form->prepare();
1878
				</div>		
1834
		echo $this->form()->openTag($form);
-
 
1835
		?>
-
 
1836
		<div class="form-group grid-1-2">
-
 
1837
			<?php
-
 
1838
			$element = $form->get('name');
-
 
1839
 
-
 
1840
			$element->setAttributes(['class' => 'form-control']);
-
 
1841
			$element->setOptions(['label' => 'LABEL_NAME']);
-
 
1842
			echo $this->formLabel($element);
1879
        				
1843
			echo $this->formText($element);
-
 
1844
			?>
-
 
1845
		</div>
-
 
1846
		<div class="form-group grid-1-2">
-
 
1847
			<?php
-
 
1848
			$element = $form->get('description');
-
 
1849
			$element->setAttributes(['id' => 'description_edit', 'rows' => '2', 'class' => 'form-control',   'class' => 'form-control']);
-
 
1850
			$element->setOptions(['label' => 'LABEL_DESCRIPTION']);
-
 
1851
			echo $this->formLabel($element);
Línea -... Línea 1852...
-
 
1852
			echo $this->formTextArea($element);
-
 
1853
			?>
-
 
1854
		</div>
1880
     	      		<?php echo $this->form()->closeTag($form); ?>
1855
		<div class="form-group grid-1-2">
-
 
1856
			<?php
-
 
1857
			$element = $form->get('order');
1881
      		</div>
1858
			$element->setAttributes(['class' => 'form-control']);
-
 
1859
			$element->setOptions(['label' => 'LABEL_ORDER']);
-
 
1860
			echo $this->formLabel($element);
-
 
1861
			echo $this->formText($element);
1882
 
1862
			?>
-
 
1863
		</div>
1883
   
1864
 
-
 
1865
		<?php
1884
</section>
1866
		$element = $form->get('file');
Línea 1885... Línea -...
1885
 
-
 
1886
 
1867
		$element->setAttributes(['class' => 'file']);
1887
			
-
 
1888
<!-- The Modal -->
1868
		echo $this->formHidden($element);
1889
<div class="modal" id="modalImageApp">
1869
		?>
1890
	<div class="modal-dialog ">
1870
 
1891
    	<div class="modal-content">
-
 
1892
 
-
 
1893
            <!-- Modal Header -->
-
 
1894
      		<div class="modal-header">
-
 
1895
        		<h4 class="modal-title">LABEL_IMAGE</h4>
1871
		<div class="form-group grid-1-2">
1896
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
Línea -... Línea 1872...
-
 
1872
			<?php
Línea 1897... Línea -...
1897
      		</div>
-
 
1898
 
-
 
1899
            <!-- Modal body --> 
-
 
Línea -... Línea 1873...
-
 
1873
			$element = $form->get('status');
-
 
1874
			$element->setAttributes(['class' => 'form-control']);
-
 
1875
			$element->setOptions(['label' => 'LABEL_STATUS']);
-
 
1876
			echo $this->formLabel($element);
Línea -... Línea 1877...
-
 
1877
			echo $this->formSelect($element);
-
 
1878
			?>
-
 
1879
		</div>
-
 
1880
 
-
 
1881
		<div class="contenido form-group" id="contenido2">
1900
            <div class="modal-body text-center">
1882
		</div>
-
 
1883
 
-
 
1884
		<?php echo $this->form()->closeTag($form); ?>
-
 
1885
	</div>
-
 
1886
 
-
 
1887
 
-
 
1888
</section>
-
 
1889
 
-
 
1890
 
-
 
1891
 
-
 
1892
<!-- The Modal -->
-
 
1893
<div class="modal" id="modalImageApp">
-
 
1894
	<div class="modal-dialog ">
1901
				<img src="" class="img img-responsive" style="width: 300px; height: auto" id="image-app" />
1895
		<div class="modal-content">