You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							23 lines
						
					
					
						
							574 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							23 lines
						
					
					
						
							574 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								function smarty_modifier_get_paper_unit($type, $unitnum) {
							 | 
						|
								    if($type == 3 || $type == 4 || $type == 8 || $type == 9 || $type == 25) {
							 | 
						|
								        $unit = $unitnum/1;
							 | 
						|
								        $unit =  $unit== 1 ? '' : $unit;
							 | 
						|
								        return $unit.'篇';
							 | 
						|
								    }
							 | 
						|
								    $unit = $unitnum/1000;
							 | 
						|
								    if($unit > 0 && $unit <= 10) {
							 | 
						|
								        if($unit == 10) return "万字";
							 | 
						|
								
							 | 
						|
								        $unit =  $unit== 1 ? '' : $unit;
							 | 
						|
								        return $unit."千字";
							 | 
						|
								    }
							 | 
						|
								    $unit = $unitnum/10000;
							 | 
						|
								    if($unit > 0 && $unit < 10) {
							 | 
						|
								        $unit =  $unit== 1 ? '' : $unit;
							 | 
						|
								        return $unit."万字";
							 | 
						|
								    }
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								?>
							 |