Перейти к содержимому


Фотография
- - - - -

Пункт создание item (свой вид)

item add

Сообщений в теме: 3

#1 CB9TOIIIA

CB9TOIIIA

Отправлено 15 August 2016 - 11:24

*
Популярное сообщение!

Всем привет. Посмотрел я на создание item (внешний вид) - что-то серый) решил немного прокачать.

 

Файл находится:

administrator\components\com_zoo\views\item\tmpl\add.php

Собственно можете на свой код заменить:

<?php
/**
 * @package   com_zoo
 * @author    YOOtheme http://www.yootheme.com
 * @copyright Copyright (C) YOOtheme GmbH
 * @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
 */

	defined('_JEXEC') or die('Restricted access');
	JFilterOutput::objectHTMLSafe($this->item, ENT_QUOTES);
?>
<style media="screen">
div.node-open.application-list a {
    display: inline-block;
    margin: 0px !important;
    border: 0px !important;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
		font-family: Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Tahoma,sans-serif;
}
.node-open.application-list span a p {
    font-size: 1.25em;
}
</style>
<form action="index.php" method="post" name="adminForm" id="adminForm" accept-charset="utf-8">

	<?php echo $this->partial('menu'); ?>

	<div class="box-bottom">

		<table class="admintable" width="100%">
			<tr valign="top">
				<td width="60%">
					<!-- Menu Type Section -->
					<fieldset>
						<legend><?php echo JText::_('Select Item Type'); ?></legend>		<div class="node-open application-list">
							<?php foreach ($this->types as $type) : ?>
<?php	// dump($type->name,0,'ТИп') ?>

	<?php
	switch ($type->name) {
		case 'Новости':
		$myimgpost = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAD5UlEQVR4Xu1bvWsUQRR/b5ZLAiYBwSQ2FkKwMORjd+8wIGIQmzRGLO2NESwUC/8GKy00amztg4hgozYiOXN7OS4GFYKVTZLmvCghbG5GJuTC5rKX2ZvZj9swV97se/N+v/fmvbczOwgBf4ODg529vb13AOAmIp4HgBMBRdvlsW1K6YphGK8rlcrs6urqNjcMg1iXy+XO7Ozsv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xOmKaVXCCFnAaAzhUC9JvMy/4sx9gER5xzHWfYO/gdDHM12FrOwXQAAAABJRU5ErkJggg==';
		break;
		case 'Видео':
		$myimgpost = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACJklEQVR4Xu3az+sNURjH8dd3QVn4C2yU8g8oG3tlI2XzVUo2lMhOCUWRbCykWIqFRPmxUrZSFhbKjlhIsVPIws9OnalLuPdrZu45c+c5m7u4M8+cz/s8P86cZ5aMfCyNXL8AEB4wcgIRAiN3gEiCEQI5BDbiBNaMJCQ+4xReNB5wDbtHIr6ReQV7GwC3sHNkAG5g+U8AFj0v/MgLHQDCAyIEIgdEEowqkEvC5D4gyuCCb4iK7QNW4wy+4Cw+FAJdDMAO3M6i3+Ag7hSAUAzAMq7/JvguDuH1HEFUBSDp/ojjuIhvcwBRHYBG8xPsR/rtc1QLIIn+jgv5cCZ5Rh+jagCN4JQTUpK81wOBQQBodF/Fno4hDApACoO1YwXwDvt6CINBeMBlHMX7jlc/masawLNcCh/1ILwxWSWA5pz+fH5X6FF/fR5wHwfwqk/VE7ar8YC3OIybE3E5DwbFAGzG4yz2Eo71lOSmQSwGIE1sE77i6bRZ9vh/UQA96prZdADIqKI1Fq2xaI1FayxaY9EayyVhsjW2a+aKOswLm6P5v5bBYcpa+ax/AXAOR1ZuY9B3nE6nz00OWIWtI/pO8BMepPeSRW+FT3XRADAV0ewXrMNDrJ/9lv+68iW2IB2otB5desB2pG7vPMY2pKO01qNLACmRnsSG1rP6t4Hn+UPndLDSenQJoPVkShgIACWo1/TM8ICaVqPEXMIDSlCv6ZnhATWtRom5/ATNh7RB34urQgAAAABJRU5ErkJggg==';
		break;
		case 'Спецпроекты':
		$myimgpost = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFU0lEQVR4Xu2bCah1UxTHf88sMkQkQmaZp8xR5iEkQ0SIDBEZMstHyDykRITPHMmskMwyz7OQqUyZ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0qhqwEu+iwGfRoCVfE/VMAz4HnIwpaosYTzfNpOF+ivW/inC3E7sgmxzxma8bxu0ZAL73yShSpAPL/8HAhMdDUQfwuhOpYZa55bNu0IkSACmyNMo02szdprWlMfsFVwRcscmgVBMwJebZvxNdEgbXZ+xW70SW166PA5bt/GqsKTU9To4XqQVAZEVxssjma5uw9wWmNwzq9wlXRcP2fg28swDvhNAaTg2sp80VgD8yJl8LwKqAQclkkXH/6lEYKZ8Byu+wIPIcIJ+FlCYS1GsKTIIm4DlUC4C+P6c2l/MSV0k7YvephY+mcS2IyG8orCu2bb8TFbWgm9V3zAkApOLFZAJgFti9+VZkhHNAMzmqK/ZZn2uipAXdrH4lAKarl4lYPScWb5qY9/eI2v/NEebmPGOn+i7x7C0ZD6gFHqFNpuTs/TTkBA24GhBFP5lJfbQZ7+/Ioj3ZHXgpqj454+0ai3Br5qHIMdVaa4rd0AQANgIsVnwfbrDcMt/N4MPAOwEAJ23pWlUy+jMet1rbVqoEwBDUGp3ZWQ3QIfEJTRtBqARAQZcIo2J0JWnFDY2NDCcrzTUIgE74XqA4KY2KWdojgAUHYbY9nMP4FyNV7zBHtwGgNfcr0pl6OJF+DT3+zVC/JtD399alnfs+sRk1gZEH4B9MZw1fM4iYFAAAAABJRU5ErkJggg==';
		break;
		case 'Авторы новостей':
		$myimgpost = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAI00lEQVR4Xs2bB7BlRRGGP0CSpHIRyViAgVJEQiFFDhIKWQMCAlJiIEkQRECCS05KliSYQIusJMliIgeVDEoQBAqQHASWDPU9erbO3r33njPnzC3oqle7792Znp6emQ5/952K0dPswErAosAiwCeBOYBZ4udt4P/x8yRwN/Bv4HbgSuDZUYo41YiYu9lNgLWAxYG266icm4DLgFOAf5WWt61g/eSYAfg2sDmw5ABBnwDuAf4XJ/5ijPM2zAzMA3wC+PCA+X8HfgH8Fni1hDJKKGAmYCtgF2CuilCe3nXAX+Pnn8BzD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Njw2OgwYejJeAxaVINpHUDExo6MUZL4gM/K2oO2ZRCZROlGrXzZ6KWLf7p38CAFOM62OGN4/aeMVgFeqDCw9OU1txMs18CVUpCu9aho3q7mDGaf2g+r3m/EXvo2eg1TgELaeOwbkv4S3R8akG9EGp06tUttqC0f64Wm9BZ59Dp+xSZ1uGw7DJOoU4Cfq4DU7ydqZIS4QltJRzzPUxaCS98l8Fsluw5bs04BzvUJGCGWrvWNWBdjjVD6/KHBXBMFJCXYoFSq83PUm/fkU8PH0LWaKiAx0b35JLwV70fS4CljYxwyVwHJO2hsSlWSSylSV7dxbltvGwUosPGBSK35wvuBjPNtopzCz9cJ11YB8k2Aqk/ivXKHluF11blN1JP00kUBiYkJlNi9Rqd0XWHQAZrSCuP5LdJO3yAtoYAkpAGIAZLKGPTV2bobWfe5SI4uWRvUaeNpoZIKqAovwmxeYDJiHtGFRG9tavKd28lelEalgKqQJiO2pQpziy+IxuhBxAq8NQYqtr/YqGHqa8O27brG+UaeJStVUyjvHSuSokkEf9GrAAAAAElFTkSuQmCC';
		break;
		default:
		$myimgpost = '';
		break;
	}

 ?>
					<span class="<?php echo $type->id ?>"><a href="<?php echo JRoute::_($this->baseurl.'&task=edit&type='. $type->id); ?>"><img src="<?php echo $myimgpost ?>"><p><?php echo $type->name; ?></p></a></span>

							<?php endforeach; ?>
</div>
					</fieldset>
				</td>
				<td width="40%">
				</td>
			</tr>
		</table>

	</div>

	<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
	<input type="hidden" name="controller" value="<?php echo $this->controller; ?>" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="changeapp" value="<?php echo $this->application->id; ?>" />
	<?php echo $this->app->html->_('form.token'); ?>
</form>

<?php echo ZOO_COPYRIGHT;

Итог:

 

0_a6f08_e1ac3187_orig.png
 

 


  • 7

#2 nikolia

nikolia

Отправлено 07 January 2017 - 07:31

Здравствуйте! А как вставить свои иконки? Лучше конечно вот от сюда!

http://getuikit.ru/docs/icon.html


  • 1

#3 CB9TOIIIA

CB9TOIIIA

Отправлено 07 January 2017 - 14:44

0_a9d42_e6f7f842_orig.png

  • 1

#4 CB9TOIIIA

CB9TOIIIA

Отправлено 08 November 2018 - 22:15

3nQmfZT.png
 
Для админки: http://jsfiddle.net/twrbk6Lh/ модуль html - позиция cpanel

 

Balvik5.png


  • 1





Темы с аналогичным тегами item, add

Click to return to top of page in style!