欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

普通模块中 module 增加一个js 增加css 有大用 有大大用

function shipingzhongcustomsix_init() 
{
  $arg0 =arg(0);
  $arg1=arg(1);
   
  if($_GET==array('q'=>'admin/batchWangshangbaoming')){
     
     drupal_add_js(drupal_get_path('module', 'shipingzhongcustomsix') .'/reloadbatch.js');
  }
}




function theme_dianming_room($element) {
 drupal_add_css(drupal_get_path('module', 'shipingzhongroom') .'/shipingzhongroom.css');
 drupal_add_js(drupal_get_path('module', 'shipingzhongroom') .'/shipingzhongroom.js');
 
 $output = '';
 $output .= '<div class="china-address-field clear-block">';
 $output .= '<div class="china-address-field-column-select">'. theme('select', $element['dianming']) .'</div>';
 $output .= '<div class="china-address-field-column-select">'. theme('select', $element['room']) .'</div>';
 //$output .= '<div class="china-address-field-column-textfield">'. theme('textfield', $element['detail']) .'</div>';
 $output .= '</div>';
 
 return $output;
 
}


普通分类: