public function modifierUniversiteAction(Request $request, $iduniversite)
 {
     $em = $this->getDoctrine()->getManager();
     $universites = $em->getRepository('CestomStoreBundle:Universite')->findAll();
     $universite = $universite = $em->getRepository('CestomStoreBundle:Universite')->find(htmlspecialcharS($iduniversite));
     $form = $this->createFormUniversite($universite);
     $form->handleRequest($request);
     if ($form->isValid()) {
         try {
             $this->persistObjectUniversite($universite);
             $this->messageAfterRequest($request, $this->typeMessage['success'], $this->success['validUpdate']);
             return $this->redirect($this->generateUrl('cestom_admin_ajouter_universite'));
         } catch (\Exception $e) {
             $this->messageAfterRequest($request, $this->typeMessage['error'], $this->errors['integrity']);
             return $this->render('CestomAdminBundle:GestionMembre:modifierUniversite.html.twig', array('form' => $form->createView(), 'universites' => $universites, 'iduniversite' => $iduniversite));
         }
     } else {
         if ($this->get('request')->getMethod() == 'POST') {
             $this->messageAfterRequest($request, $this->typeMessage['error'], $this->errors['notvalidUpdate']);
             return $this->render('CestomAdminBundle:GestionMembre:modifierUniversite.html.twig', array('form' => $form->createView(), 'universites' => $universites, 'iduniversite' => $iduniversite));
         }
     }
     return $this->render('CestomAdminBundle:GestionMembre:modifierUniversite.html.twig', array('form' => $form->createView(), 'universites' => $universites, 'iduniversite' => $iduniversite));
 }
    ?>
"
	href="javascript:top.View('<?php 
    echo $this->path;
    ?>
','<?php 
    echo str_replace('"', '&quot;', AddCSlashes($nlsdata->name, ARESCAPE));
    ?>
');"><img
	class="icon" src="<?php 
    echo $icon;
    ?>
"
	alt="<?php 
    echo $this->path;
    ?>
"> <?php 
    if (mb_strlen($nlsdata->name, "utf-8") > 32) {
        $name = htmlspecialchars(mb_substr($nlsdata->name, 0, 32, "utf-8") . "...");
    } else {
        $name = htmlspecialcharS($nlsdata->name);
    }
    if (!$this->CheckSilent("read")) {
        echo "<font color=\"#CCCCCC\">{$name}</font>";
    } else {
        echo "{$name}";
    }
    ?>
</a></div>
<?php 
}
		function refresh($type = 'recent', $file = true, $value = array()) {
			global $database, $db, $service;
			requireComponent('LZ.PHP.XMLWriter');		

			$rssDir = ROOT . '/cache/rss';
			func::mkpath($rssDir);
			if (!is_dir($rssDir) || !is_writeable($rssDir))
				return false;

			$config = new Settings;
			$rssCount = $config->feeditemsOnRss;
			$myURL = 'http://'.$_SERVER['HTTP_HOST'].$service['path'];
			
			if($file) {
				if($type == 'focus') {
					$xml = new XMLFile($rssDir.'/1_focus.xml');
				} else if($type == 'category') {
					$xml = new XMLFile($rssDir.'/1_category_'.$value['id'].'.xml');
				} else {
					$xml = new XMLFile($rssDir.'/1.xml');
				}
			} else {
				$xml = new XMLFile('stdout');
			}

			$xml->startGroup('rss', array('version'=>'2.0'));
			
			switch($type) {
				case 'focus':
					$title = htmlspecialchars($config->title) . ' : ' . _t('포커스 목록');
				break;
				case 'category':		
					$title = htmlspecialchars($config->title) . ' : ' . _f('%1에 대한 분류 검색결과',$value['name']);
				break;
				default:
					$title = htmlspecialchars($config->title);
				break;
			}
			
			$xml->startGroup('channel');
			$xml->write('title', $title);
			$xml->write('link', htmlspecialchars($myURL));
			$xml->write('description', htmlspecialchars($config->description));
			$xml->write('language', $config->language);
			$xml->write('pubDate', date("r", time()));
			$xml->write('generator', BLOGLOUNGE.' '.BLOGLOUNGE_VERSION.' '.BLOGLOUNGE_NAME);

			if (!Validator::is_empty($config->logo)) {
				$xml->startGroup('image');
				$xml->write('title', htmlspecialchars($config->title));
				$xml->write('url', htmlspecialchars($myURL.'/cache/logo/'.$config->logo));
				list($width, $height) = getimagesize(ROOT.'/cache/logo/'.$config->logo);
				$xml->write('width', $width);
				$xml->write('height', $height);
				$xml->write('description', '');
				$xml->endGroup();
			}

			if($type == 'focus') { 
				$result = $db->query("SELECT title, permalink, author, description, tags, written FROM {$database['prefix']}FeedItems WHERE allowRedistribute='y' AND focus='y' AND visibility = 'y' ORDER BY written DESC LIMIT 0,{$rssCount}");
			} else if($type == 'category') {
				$result = $db->query("SELECT i.title, i.permalink, i.author, i.description, i.tags, i.written FROM {$database['prefix']}FeedItems i LEFT JOIN {$database['prefix']}CategoryRelations c ON (c.item = i.id) WHERE i.allowRedistribute='y' AND i.visibility = 'y' AND c.category = {$value['id']} ORDER BY i.written DESC LIMIT 0,{$rssCount}");		
			} else {
				$result = $db->query("SELECT title, permalink, author, description, tags, written FROM {$database['prefix']}FeedItems WHERE allowRedistribute='y' AND visibility = 'y' ORDER BY written DESC LIMIT 0,{$rssCount}");
			}

			if ($result) {
				while ($item = $db->fetch()) {
					$xml->startGroup('item');		
					$item->description = str_replace('/cache/images',$myURL.'/cache/images',$item->description);
					$xml->write('title', htmlspecialcharS($item->title));
					$xml->write('link', htmlspecialchars($item->permalink));
					$xml->write('description', htmlspecialchars($item->description));
					foreach (explode(',', $item->tags) as $tag) {
						$xml->write('category', htmlspecialchars($tag));
					}
					$xml->write('author', htmlspecialchars($item->author));
					$xml->write('guid', htmlspecialchars($item->permalink));
					$xml->write('pubDate', date("r", $item->written));
					$xml->endGroup();
				}
			}

			$xml->endAllGroups();
			$xml->close();

			return true;
		}