|
/**
* SWmenuFree v3.1 for mambo/joomla
* http://swonline.biz
* Copyright 2004 Sean White
* DHTML Menu Component for Mambo Open Source
* Mambo Open Source is Free Software
* Released under GNU/GPL License: http://www.gnu.org/copyleft/gpl.html
**/
//error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $database, $my;
global $mosConfig_absolute_path, $mosConfig_live_site,$mosConfig_lang, $mosConfig_mbf_content;
$parent_count=0;
$menu = @$params->get('menutype') ? strval( $params->get('menutype') ) : "mainmenu";
$parentid=@$params->get('parentid') ? strval( $params->get('parentid') ) : "0";
$levels=@$params->get('levels') ? strval( $params->get('levels') ) : "25";
$query = "SELECT * FROM #__swmenufree_config WHERE id = 1";
$database->setQuery( $query );
$new_data = $database->query();
$swmenufree= mysql_fetch_assoc($new_data);
$navigator_user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
if (!stristr($navigator_user_agent, "msie")|| stristr($navigator_user_agent, "opera")){
$padding1 = explode("px", $swmenufree['main_padding']);
$padding2 = explode("px", $swmenufree['sub_padding']);
for($i=0;$i<4; $i++){
$padding1[$i]=trim($padding1[$i]);
$padding2[$i]=trim($padding2[$i]);
}
if($swmenufree['main_width']!=0){$swmenufree['main_width'] = ($swmenufree['main_width'] - ($padding1[1]+$padding1[3]));}
if($swmenufree['main_height']!=0){$swmenufree['main_height'] = ($swmenufree['main_height'] - ($padding1[0]+$padding1[2]));}
if($swmenufree['sub_width']!=0){$swmenufree['sub_width'] = ($swmenufree['sub_width'] - ($padding2[1]+$padding2[3]));}
if($swmenufree['sub_width']!=0){$swmenufree['sub_height'] = ($swmenufree['sub_height'] - ($padding2[0]+$padding2[2]));}
}
if($menu && $swmenufree){
$sql = "SELECT #__menu.*
FROM #__menu
WHERE #__menu.menutype = '".$menu."' AND published = '1'
AND access <= '$my->gid'
ORDER BY parent, ordering
";
$database->setQuery( $sql );
$result = $database->loadObjectList();
$swmenufree_array=array();
foreach ($result as $result2) {
if ($mosConfig_mbf_content) {
$result2 = MambelFish::translate( $result2, 'menu', $mosConfig_lang);
}
switch ($result2->type) {
case 'separator';
//$result2->link = "seperator";
break;
case 'url':
if (eregi( "index.php\?", $result2->link )) {
if (!eregi( "Itemid=", $result2->link )) {
$result2->link .= "&Itemid=$result2->id";
}
}
break;
default:
$result2->link .= "&Itemid=$result2->id";
break;
}
if($result2->parent==$parentid){
$parent_count++;
}
//$result2->link = str_replace( '&', '&', $result2->link );
if ( strcasecmp( substr( $result2->link,0,4 ), 'http' ) ) {
$result2->link = sefRelToAbs( $result2->link );
}
$swmenufree_array[] =array("TITLE" => $result2->name, "URL" => $result2->link , "ID" => $result2->id , "PARENT" => $result2->parent , "ORDER" => $result2->ordering, "TARGET" => $result2->browserNav );
}
if($parent_count){
$ordered = chainmenu('ID', 'PARENT', 'ORDER', $swmenufree_array, $parentid,$levels);
}else{
echo "No menu items to display. Please check your menu source and parent settings. In most case the parent value should be top";
exit(-1);
}
echo "";
?>
$topmenu = $ordered;
$topcounter=0;
$counter=0;
$number = count(chainmenu('ID', 'PARENT', 'ORDER', $ordered, $parentid, 1));
echo " \n";
?>
}
function findPar($ordered,$sub){
$submenu = chainmenu('ID', 'PARENT', 'ORDER', $ordered, $sub['PARENT'], 1);
if ($sub['indent']==1){
return $submenu[0]['PARENT'];
}else{
return $submenu[0]['ID'];
}
}
function fixOrder($ordered,$parent_id){
foreach ($ordered as $key => $row) {
$parent[$key] = $row['PARENT'];
$order[$key] = $row['ORDER'];
}
array_multisort($parent, SORT_ASC, $order, SORT_ASC, $ordered);
$i=0;
$counter=0;
$par=$ordered[$i]['PARENT'];
while($par==@$ordered[$i]['PARENT']){
//echo $counter;
$counter++;
$ordered[$i]['ORDER']=$counter;
if(($ordered[$i]['PARENT'])!=(@$ordered[($i+1)]['PARENT'])&&($i<(count($ordered)-1))){
$par=$ordered[$i+1]['PARENT'];
$counter=0;
}
$i++;
}
$submenu = chainmenu('ID', 'PARENT', 'ORDER', $ordered, $parent_id, 25);
return $submenu;
}
function chainmenu($primary_field, $parent_field, $sort_field, $rows, $root_id=0, $maxlevel=25)
{
$c = new chainmenu($primary_field, $parent_field, $sort_field, $rows, $root_id, $maxlevel);
return $c->chainmenu_table;
}
class chainmenu
{
var $table;
var $rows;
var $chainmenu_table;
var $primary_field;
var $parent_field;
var $sort_field;
function chainmenu($primary_field, $parent_field, $sort_field, $rows, $root_id, $maxlevel)
{
$this->rows = $rows;
$this->primary_field = $primary_field;
$this->parent_field = $parent_field;
$this->sort_field = $sort_field;
$this->buildchainmenu($root_id,$maxlevel);
}
function buildchainmenu($rootcatid,$maxlevel)
{
foreach($this->rows as $row)
{
$this->table[$row[$this->parent_field]][ $row[$this->primary_field]] = $row;
}
$this->makeBranch($rootcatid,0,$maxlevel);
}
function makeBranch($parent_id,$level,$maxlevel)
{
$rows=$this->table[$parent_id];
foreach($rows as $key=>$value)
{
$rows[$key]['key'] = $this->sort_field;
}
usort($rows,'chainmenuCMP');
foreach($rows as $item)
{
$item['indent'] = $level;
$this->chainmenu_table[] = $item;
if((isset($this->table[$item[$this->primary_field]])) && (($maxlevel>$level+1) || ($maxlevel==0)))
{
$this->makeBranch($item[$this->primary_field], $level+1, $maxlevel);
}
}
}
}
function chainmenuCMP($a,$b)
{
if($a[$a['key']] == $b[$b['key']])
{
return 0;
}
return($a[$a['key']]<$b[$b['key']])?-1:1;
}
?>
|
|
Who's Online |
|
We have 9 guests online |
|
|
 |
 |
 |
|
|
|
 |
 |
 |
|
Session V |
|
|
|
Regional Thematic Preparatory Meeting for the 5th World Summit on Media for Children
28 May 2006, Hotel Nikko, Kuala Lumpur Session V
CHILD PARTICIPATION IN RESEARCH AND PRODUCTION OF PROGRAMMES
The final session of the day, chaired by Mr. Sabri Rahman, featured presentations by Ms. Gael McIndoe, Head of Public Programmes, Australian Centre for the Moving Image; Mr. Vagish K. Jha, media consultant/trainer and radio activist from India, and two teenagers from Malaysia, Ms Sarah Chen Tzee Eien and Ms Marisha.
Clarifying that her organisation was not confined to film and/or television, Ms. McIndoe said it included all forms of cultural expression. Based on the idea that people should be creators, and not only consumers, of culture, the Centre actively promoted public engagement in its activities. One such project aimed at young people dealt with digitial story-telling, drawing on experiences from their own lives. In a three-day workshop, participants began by identifying story ideas and drafting scripts, which were then discussed with each other. Based on the feedback and suggestions, and exposure to examples of effective digital story-telling, the participants then revised their scripts. They were then introduced to story-boarding and technical aspects of digital production. And, finally, they were able to produce their own digital stories. According to Ms. McIndoe, the project helped youngsters gain and develop creative, critical and technical skills. It also encouraged collaboration. Most participants found the process inspiring and transformative, and many reported a new sense of empowerment that came with being valued as a story-teller Mr. Vagish Jha began with a brief history of radio, particularly in the Indian context, reporting the recent resurgence of radio with the emergence of new technologies and broadcast policies. The greatest growth has been in FM radio, with nearly 400 frequencies auctioned and allotted over the past two years and most metropolitan cities hosting multiple FM channels, including some by established media houses. However, he pointed out, this proliferation has not led to genuine choice for listeners since almost all of them rely almost exclusively on popular (especially Bollywood and other film-based) music for content. At the same time, the government has not yet legitimised community radio in the true sense of the term despite a landmark judgement by the Supreme Court of India in 1995, declaring that the airwaves are public property, and although the possibility of campus radio has been opened up. However, it has made provisions for community-based organisations to participate in radio communication and programming through the local radio stations of All India Radio, the national broadcaster. In addition, he said, technological innovation has enabled a number of small-time rural entrepreneurs, most of them young, to set up cheap, make-shift FM radio stations without the benefit of official licenses. While these one-dollar FM stations constitute a thriving – if illegal -- cottage industry, they tend to copy existing commercial FM stations in terms of programming, merely giving the customary fare a regional twist to ensure local relevance. Mr. Jha then went on to describe a project he was involved with that set out to explore the possibilities of using digital broadcasting to address issues of reproductive health and HIV/AIDS among young people. As part of the project he designed a programme for adolescents called Umag (Zest), which aimed to stimulate debate around such issues and encourage youngsters to find realistic solutions to problems in these areas. Although the pilot episode received positive feedback from youth as well as adults, he felt that the programme was in the final analysis made by a professional for adolescents. Following up on that experience he got involved in an experiment to launch a radio programme by, of and for adolescents. The project, situated in Bikaner district, Rajasthan, involved providing comprehensive radio training to rural adolescents so that they could develop and produce their own programmes focussing on health, development, the environment and livelihoods. The primary target group comprises adolescents in the age group 12-19 years. All 50 of the youngsters chosen to work on the programme were from remote villages (two from each of the 22 selected villages in the border district) and while two-thirds belonged to marginalised social classes and castes, over 40 per cent were girls. Not only were they given technical training but they were put through a process that demystified technology and encouraged questioning and creative thinking, including about the issues they wished to address through radio. The young people also named the programme and got involved in audience research. Eleven months later, with five young editors, another five script-writers, ten reporters and four presenters (with several more in each category waiting in the wings), Kishor Vani is all set to go on air from mid-June 2006 and thereby become the first adolescent radio in the country. Ms Sarah Chen Tzee Eien and Ms Marisha described their experiences as members of the Golden Kids News, Golden Kids Club and, later, the Young Achievers Club from the time they were ten years old. The Golden Kids News started off as a child-edutainment programme, which later spinned off to be a more advanced children programme on a local television station. The contract with the tv station stopped, however the development of these two as individuals, along with the other 28 selected children did not, with the formation of the Young Achievers Club as a platform to build future leaders- a long term programme which includes a series of motivational and charity activities. (pls refer to website- www.yac.com.my) They were also both selected as Malaysian delegates in the 4th Rio Media Summit for Adolescents, where they were simultaneously involved in the launch of the Malaysian Children Television Foundation.  Their participation involved a few key stages, i.e pre-production, during production and post-production. In the pre-production stage, for example, they were involved in research (going directly to the target group) and contributed ideas for programmes based on what children really want to watch and what went with their changing lifestyles. According to them, what present-day adults wanted to see when they were children may not be what today’s children want to see. Instead of hiring research companies at great expense, they suggested, it would be simpler and more effective to get children to talk to children and determine what kind of programmes they and their peers want. During production, they were more than just “talents’’ and were instead part of the crew, learning the technical aspects of producing a show, contributing technical as well as content ideas, making suggestions about making the show more appealing to their age group, and so on. Finally, in the post-production period, they gathered feedback from each other, other friends and family members on how the programme was received, how it could improve, etc. According to them, working together as a team helped them to learn from each other. They concluded their spirited presentation by assuring the largely adult audience at the workshop that they were not there to take over their roles as media professionals: “We are here just to guide you!’’ That was an appropriate note on which to end the regional thematic meeting on media for children! Among the issues that came up in discussions through the day and will be taken on board in preparations for the Johannesburg Summit were the following: 1. The importance of paying more attention to radio, print and, possibly, hybrid (combination) media to meet the needs, interests and concerns of the diverse populations of this region. 2. The need for more research on different aspects of media by, for and about children in this region, with children participating in the research to the extent possible. 3. The need to ensure that various marginalised sections of the child population, including children from indigenous and other socially and economically disadvantaged communities, and children in difficult and dangerous circumstances, have access to and can participate in media. 4. The need to examine issues relating to media policy and regulation to promote media by, for and about children in the region. 5. The importance of child participation and involvement – both in creating and producing their own media, and in providing inputs and feedback on child-related content in the so-called mainstream media. 6. The relevance of co-productions and content exchanges within the region and across the world. 7. And, finally, the exciting prospect of a World Summit on Media for Children hosted by Asia in the near future.
|
|
|
 |
 |
 |
|